summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/ccp2
-rwxr-xr-xsh/upd2
2 files changed, 2 insertions, 2 deletions
diff --git a/sh/ccp b/sh/ccp
index 0a38755..4083fe8 100755
--- a/sh/ccp
+++ b/sh/ccp
@@ -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)"
diff --git a/sh/upd b/sh/upd
index e3e70b1..a305eb2 100755
--- a/sh/upd
+++ b/sh/upd
@@ -23,7 +23,7 @@ backup () {
# Pull repos and branches from studio, so one more backup on insp or duplicity will backup to ia,for one more backup for 321 backup rule
# cfgl master and pp branches already satisfy 321 rule. Here are three copies: 1. master/pp, 2. studio, 3. gitlab or alternative
# But I still copy those on insp because one more copy will not hurt. And all my other data stil satisfy 3 copies without backup to gitlab, so why left out cfgl? Also it may be nice if I what to use that local dir for searching things.
- cd "$HOME/programs/config_local_arch" || exit 1
+ cd "$HOME/programs/config_local_arch" || exit
git branch | awk '{print ($1=="*")?$2:$1}' | while read -r branch; do
git checkout "$branch"
git pull