diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-06-18 20:57:48 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-06-18 20:57:48 -0700 |
commit | 769328acc39a5c2908f0c8febe57c37b630f4a7f (patch) | |
tree | dae5c2120ae1e4d4eec9a2738e04f26110d33a21 /sh/ccp | |
parent | 7e035dccd4bd07e58f7639d1ed4ad6f2d563efda (diff) |
I decided to use `cd ... || exit` instead of `exit 1`
Because only exit will still return cd error code, so no need to exit 1.
Diffstat (limited to 'sh/ccp')
-rwxr-xr-x | sh/ccp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ ssh pp 'gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing' -cd "$HOME/programs/config_local_arch" || exit 1 +cd "$HOME/programs/config_local_arch" || exit all_branch="$(git branch | awk '{print ($1=="*")?$2:$1}')" all_branch_no_master="$(echo "$all_branch" | grep -v master)" |