Update updater script
This commit is contained in:
parent
325883f817
commit
903f683052
1 changed files with 4 additions and 2 deletions
|
@ -5,8 +5,10 @@ if [ "$STAGE" == "1" ]; then
|
|||
./uninstall.sh
|
||||
echo ":: Installing files"
|
||||
./install.sh
|
||||
echo ":: Update complete."
|
||||
rm -rf "$HOME/.config/.jstm_dotfiles_updater"
|
||||
echo ":: Update complete."
|
||||
echo " Please execute \"dotfiles-install-software\" to"
|
||||
echo " install and update required software.
|
||||
else
|
||||
echo ":: Checking for updates"
|
||||
if [ ! "$1" == "--force" ] && [ "$(env SCRIPTED=true dotfiles-updatechecker)" == "" ]; then
|
||||
|
@ -22,5 +24,5 @@ else
|
|||
echo ":: Pulling updates"
|
||||
git pull
|
||||
echo ":: Running updater (stage 2)"
|
||||
env STAGE=1 "$HOME/.dotfiles/bin/updater"
|
||||
exec env STAGE=1 "$HOME/.dotfiles/bin/updater"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue