aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-01 11:13:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-01 11:13:56 +1200
commit61d149e7497cbe03a3d7bb30b273604d484aa3d1 (patch)
treeb315b7e8439fb65b61ecd5c06b98c7fed19d264a /bin
parentCorrect glob for finding repos (diff)
downloaddotfiles-61d149e7497cbe03a3d7bb30b273604d484aa3d1.tar.gz
dotfiles-61d149e7497cbe03a3d7bb30b273604d484aa3d1.zip
Run gscr(1) in subshell
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gscr4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gscr b/bin/gscr
index 0896d64f..e09469fd 100755
--- a/bin/gscr
+++ b/bin/gscr
@@ -1,6 +1,6 @@
#!/bin/sh
# Scrub a Git repository
-for arg in "${@:-.}" ; do
+for arg in "${@:-.}" ; do (
case $arg in
*.git)
cd -- "$arg" || continue
@@ -12,4 +12,4 @@ for arg in "${@:-.}" ; do
git fsck || continue
git reflog expire --expire=now || continue
git gc --prune=now --aggressive || continue
-done
+) done