cp --recursive $WORKDIR/* $DESTDIR
}
-LoadConfig()
+load_config()
{
- # .albentohandy.conf: set MUSICPATH
- if [ ! -f "$HOME/.albentohandy.conf" ]; then
- echo "ERROR: $HOME/.albentohandy.conf does not exists"
- exit 1
- fi
+ [ -f "$HOME/.albentohandy.conf" ] \
+ || errlog "file $HOME/.albentohandy.conf does not exists" \
+ || return $?
source $HOME/.albentohandy.conf
}
MUSICPATH="/tmp/musikpath" # flac collection directory
check_programms || return $?
- LoadConfig
+ load_config || return $?
SetDefaultVariables
ReadArguments $*