summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2025-11-07 14:21:20 -0600
committerBrad Clawsie <brad@b7j0c.org>2025-11-07 14:21:20 -0600
commit3213e529e082cf9d99e4bbb431acc703e03a8b71 (patch)
tree9a00240b084ba93288f0329f30a7417aef5b7a58
parent5515da4d47851a70101e7d68aeff1259b5abfa3c (diff)
fix scripts
-rwxr-xr-xgit/pull-git2
-rwxr-xr-xgit/push-git2
2 files changed, 2 insertions, 2 deletions
diff --git a/git/pull-git b/git/pull-git
index 2850d47..a47e777 100755
--- a/git/pull-git
+++ b/git/pull-git
@@ -1,7 +1,7 @@
#!/usr/bin/env fish
set branch "master"
-if set -q $argv[1]
+if test (count $argv) -eq 1
set branch $argv[1]
end
echo "pull from $branch"
diff --git a/git/push-git b/git/push-git
index b5f2479..30ce865 100755
--- a/git/push-git
+++ b/git/push-git
@@ -1,7 +1,7 @@
#!/usr/bin/env fish
set branch "master"
-if set -q $argv[1]
+if test (count $argv) -eq 1
set branch $argv[1]
end
echo "push to $branch"