From: Alexander Barton Date: Thu, 7 Aug 2008 16:58:16 +0000 (+0200) Subject: Install user/bash_profile as $HOME/.profile, if this file exists X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=7aa4f4a4000072ac430bbdce795d04e6a5113821 Install user/bash_profile as $HOME/.profile, if this file exists --- diff --git a/install.sh b/install.sh index c7e7d25..2453855 100755 --- a/install.sh +++ b/install.sh @@ -49,7 +49,11 @@ fi user=`basename "$HOME"` echo "Starting user configuration ($user in $HOME):" echo " - bash shell:" -Copy_File user/bash_profile "$HOME/.bash_profile" "$user" 600 +if [ -e "$HOME/.profile" ]; then + Copy_File user/bash_profile "$HOME/.profile" "$user" 600 +else + Copy_File user/bash_profile "$HOME/.bash_profile" "$user" 600 +fi Copy_File user/bashrc "$HOME/.bashrc" "$user" 600 Copy_File user/bash_logout "$HOME/.bash_logout" "$user" 600