From 8f0b36f1a8229b380d048e667590e814c94e21b9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 1 May 2017 17:32:07 -0400 Subject: Fix prune script The for loop was overriding zsh's $path variable, causing it to not be able to find rm. --- prune.sh | 8 ++++---- 1 file 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 -- cgit 1.4.1