Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91283679
debugging.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 9, 15:59
Size
576 B
Mime Type
text/x-shellscript
Expires
Mon, Nov 11, 15:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22236036
Attached To
R1066 amc-cape
debugging.sh
View Options
#!/bin/bash
function
error
()
{
error_echo
$@
}
function
warn
()
{
warning_echo
$@
}
function
debug
()
{
is_set quiet;
if
[
$?
-eq 1
]
;
then return
0;
fi
is_set debug;
if
[
$?
-eq 1
]
;
then
debug_echo
$@
;
fi
}
function
perma
()
{
is_set quiet;
if
[
$?
-eq 1
]
;
then return
0;
fi
color_echo
"${Green}*${NoColor} "
$@
}
function
verbose
()
{
is_set quiet;
if
[
$?
-eq 1
]
;
then return
0;
fi
is_set verbose;
if
[
$?
-eq 1
]
;
then
echo
" "
$@
;
fi
}
function
check_file_exists
()
{
if
[
-r
$1
]
;
then
return
0
else
error
"File not found: $1"
return
1
fi
}
# EOF
Event Timeline
Log In to Comment