Update updater script

This commit is contained in:
JeremyStar™ 2024-05-19 21:06:50 +02:00
parent 325883f817
commit 903f683052
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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