Skip dotfiles-updatechecker if forced

This commit is contained in:
JeremyStar™ 2023-12-16 23:55:05 +01:00
parent 6b5d5458a9
commit 5e12e759e9

View file

@ -9,7 +9,7 @@ if [ "$STAGE" == "1" ]; then
rm -rf "$HOME/.config/.jstm_dotfiles_updater"
else
echo ":: Checking for updates"
if [ "$(env SCRIPTED=true dotfiles-updatechecker)" == "" ] && [ ! "$1" == "--force" ]; then
if [ ! "$1" == "--force" ] && [ "$(env SCRIPTED=true dotfiles-updatechecker)" == "" ]; then
echo ":: No update is available. Use \"--force\" to update anyway."
exit 1
fi