Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120643462
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, Jul 5, 21:37
Size
576 B
Mime Type
text/x-shellscript
Expires
Mon, Jul 7, 21:37 (2 d)
Engine
blob
Format
Raw Data
Handle
27220379
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