Only try to move old script if it actually exists.

This would otherwise just error out on first installation!
master
Icedream 2018-02-19 10:18:32 +01:00
parent 5a7c84e8ca
commit 159bddddbb
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ fi
echo "Running profile installation..." echo "Running profile installation..."
cd .. cd ..
if [ -f "${HOME}/bin/update-profile" ]; then
mv "${HOME}/bin/update-profile" "${HOME}/bin/update-profile.old" mv "${HOME}/bin/update-profile" "${HOME}/bin/update-profile.old"
fi
./install.sh ./install.sh
) )