diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-01-21 13:51:06 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-01-21 13:51:06 -0800 |
commit | 1036427698f54424810b2c739f6371f2e03cc5b9 (patch) | |
tree | 26582fe7315070d24ec404d39179e2eb1aa764d7 | |
parent | 4067fd7e99bf5c3b3eaa8ce025e5f4d03c13e6b7 (diff) |
update
-rwxr-xr-x | upd | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |