Page MenuHomec4science

debugging.sh
No OneTemporary

File Metadata

Created
Sat, Jun 1, 12:23

debugging.sh

#!/bin/bash
function error() {
error_echo $@
}
function warn() {
warning_echo $@
}
function debug() {
is_set debug
if [ $? -eq 1 ]; then debug_echo $@; fi
}
function verbose() {
is_set verbose
if [ $? -eq 1 ]; then color_echo "${Green}*${NoColor} "$@; fi
}
function check_file_exists() {
if [ -r $1 ]; then
return 0
else
error "File not found: $1"
return 1
fi
}
# EOF

Event Timeline