Page MenuHomec4science

debugging.sh
No OneTemporary

File Metadata

Created
Sat, Nov 9, 15:59

debugging.sh

#!/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