]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
optimize load config
authorBastian Dehn <hhaalo@arcor.de>
Sun, 23 Mar 2025 19:34:35 +0000 (20:34 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 23 Mar 2025 19:34:35 +0000 (20:34 +0100)
albentohandy

index ed29052144d7cfd4538d82fab62dc29aa85cda20..9658f1b156cbb9eb34fe7a1c8f6b00784d55a3a2 100755 (executable)
@@ -339,12 +339,12 @@ CopyWorkDirToDestDir()
 LoadConfig()
 {
        # .albentohandy.conf: set MUSICPATH
-       if [ -f $HOME/.albentohandy.conf ]; then
-               source $HOME/.albentohandy.conf
-       else
-               printf "\nERROR\n%s/.albentohandy.conf does not exists\n" $HOME
+       if [ ! -f "$HOME/.albentohandy.conf" ]; then
+               echo "ERROR: $HOME/.albentohandy.conf does not exists"
                exit 1
        fi
+
+       source $HOME/.albentohandy.conf
 }
 
 ExistsBasicProgramms()