From: Alexander Barton Date: Fri, 22 Nov 2013 15:18:29 +0000 (+0100) Subject: Install system files locally, when already present there X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=3446359c55772523b509586655ee2d178048d3aa;p=ConfigScripts.git Install system files locally, when already present there --- diff --git a/install.sh b/install.sh index 6e85bee..f42c52e 100755 --- a/install.sh +++ b/install.sh @@ -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