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
|
./uninstall.sh
|
||||||
echo ":: Installing files"
|
echo ":: Installing files"
|
||||||
./install.sh
|
./install.sh
|
||||||
echo ":: Update complete."
|
|
||||||
rm -rf "$HOME/.config/.jstm_dotfiles_updater"
|
rm -rf "$HOME/.config/.jstm_dotfiles_updater"
|
||||||
|
echo ":: Update complete."
|
||||||
|
echo " Please execute \"dotfiles-install-software\" to"
|
||||||
|
echo " install and update required software.
|
||||||
else
|
else
|
||||||
echo ":: Checking for updates"
|
echo ":: Checking for updates"
|
||||||
if [ ! "$1" == "--force" ] && [ "$(env SCRIPTED=true dotfiles-updatechecker)" == "" ]; then
|
if [ ! "$1" == "--force" ] && [ "$(env SCRIPTED=true dotfiles-updatechecker)" == "" ]; then
|
||||||
|
@ -22,5 +24,5 @@ else
|
||||||
echo ":: Pulling updates"
|
echo ":: Pulling updates"
|
||||||
git pull
|
git pull
|
||||||
echo ":: Running updater (stage 2)"
|
echo ":: Running updater (stage 2)"
|
||||||
env STAGE=1 "$HOME/.dotfiles/bin/updater"
|
exec env STAGE=1 "$HOME/.dotfiles/bin/updater"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue