summaryrefslogtreecommitdiff
path: root/mac/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.local/bin')
-rwxr-xr-xmac/.local/bin/gitupdate7
-rwxr-xr-xmac/.local/bin/hugow2
2 files changed, 7 insertions, 2 deletions
diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate
index bbe1a92..692a365 100755
--- a/mac/.local/bin/gitupdate
+++ b/mac/.local/bin/gitupdate
@@ -76,7 +76,12 @@ else
# Add and commit changes
git add --all .
git commit -m "$message"
- git pull --rebase origin "$branch"
+ if git remote | grep -qx origin; then
+ remote=origin
+ else
+ remote=$(git remote | head -n 1)
+ fi
+ git pull --rebase "$remote" "$branch"
git remote | xargs -L1 git push --all
fi
diff --git a/mac/.local/bin/hugow b/mac/.local/bin/hugow
index e9113a0..972d285 100755
--- a/mac/.local/bin/hugow
+++ b/mac/.local/bin/hugow
@@ -16,7 +16,7 @@ if [ ! -f "$out" ]; then
exit 1
fi
-tmp="$(mktemp "$out.XXXXXXXX.tmp")"
+# tmp="$(mktemp "$out.XXXXXXXX.tmp")"
# awk -v defaults="$defaults" '
# BEGIN {