Diff of /tags/installer-0_1_1/include/functions.sh
Parent Directory | Revision Log | Patch
revision 1018 by niro, Sun May 30 17:36:42 2010 UTC | revision 1031 by niro, Sun May 30 18:20:55 2010 UTC | |
---|---|---|
# | Line 4 | Line 4 |
4 | die() { echo "ERROR: $@"; exit 1; } | die() { echo "ERROR: $@"; exit 1; } |
5 | ||
6 | debug() { [[ ${INSTALLER_DEBUG} = 1 ]] && echo "DEBUG: $@"; } | debug() { [[ ${INSTALLER_DEBUG} = 1 ]] && echo "DEBUG: $@"; } |
7 | ||
8 | # trims whitespaces from variables | |
9 | # bash do it itself automatically if the var is not escaped with ' or " | |
10 | trim() { echo $1; } |
|