summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-05-01 17:32:07 -0400
committerJune McEnroe <june@causal.agency>2017-05-01 17:32:07 -0400
commitda30c5658b8d1d10969fdbeb2866cd0adccee94c (patch)
tree4f48dd05ab1102607b3fa7758b0f0ebdb7b60ff6
parentClean up SSH config (diff)
downloadsrc-da30c5658b8d1d10969fdbeb2866cd0adccee94c.tar.gz
src-da30c5658b8d1d10969fdbeb2866cd0adccee94c.zip
Fix prune script
The for loop was overriding zsh's $path variable, causing it to not be
able to find rm.
Diffstat (limited to '')
-rwxr-xr-xprune.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/prune.sh b/prune.sh
index cc6e2444..361e1a97 100755
--- a/prune.sh
+++ b/prune.sh
@@ -4,9 +4,9 @@
 
 set -o errexit -o nounset -o pipefail
 
-paths=$(find -L ~ -type l -lname "$PWD/*")
+links=$(find -L ~ -type l -lname "$PWD/*")
 
-for path in $paths; do
-  rm "$path"
-  echo "$path"
+for link in $links; do
+  rm "$link"
+  echo "$link"
 done