]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Install system files locally, when already present there
authorAlexander Barton <alex@barton.de>
Fri, 22 Nov 2013 15:18:29 +0000 (16:18 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 22 Nov 2013 15:18:29 +0000 (16:18 +0100)
install.sh

index 6e85bee34246b1187da759e1cec1163f7fc3b382..f42c52e666b71b4f28578d94b84dbb45e7409a2f 100755 (executable)
@@ -49,7 +49,7 @@ Config_System() {
        else
                Msg "Not running with root privileges - system configuration SKIPPED.\n"
                grep "alex@barton.de" /etc/profile >/dev/null 2>&1
-               if [ $? -ne 0 -o -n "$I_local" ]; then
+               if [ $? -ne 0 -o -n "$I_local" -o -d $HOME/.etc ]; then
                        Msg "Installing system files to $HOME/.etc/ ...\n"
                        mkdir -p "$HOME/.etc"
                        Copy_File sys/bashrc $HOME/.etc/bashrc "$user" 600