summaryrefslogtreecommitdiff
path: root/upd
diff options
context:
space:
mode:
Diffstat (limited to 'upd')
-rwxr-xr-xupd3
1 files changed, 3 insertions, 0 deletions
diff --git a/upd b/upd
index 5133008..d34ea90 100755
--- a/upd
+++ b/upd
@@ -207,3 +207,6 @@ else
fi
[ "$log" ] && printf '%s' "$log" | tee "$XDG_DOCUMENTS_DIR/logs/upd.log"
[ "$hostname" = xyzpp ] && gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type suspend
+# `[ "$hostname" = xyzpp ] && ...` if check failed will have exit status of 1, unlike check with `if`
+# I decided to always `exit 0` if reached end, so commands like `upd -p && ...` can keep running
+exit 0