Magellan Linux

Diff of /trunk/installer/include/functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1030 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; }

Legend:
Removed from v.1030  
changed lines
  Added in v.1031