From 76c6a9b42a3604d30911c96d5ce4ae3c9be4de97 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 27 Jul 2019 17:00:47 -0400 Subject: Shell script style pass --- prune.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'prune.sh') diff --git a/prune.sh b/prune.sh index 31ab30cf..d41c6bc6 100755 --- a/prune.sh +++ b/prune.sh @@ -1,7 +1,7 @@ #!/bin/sh -set -e -u +set -eu -find -L ~ -type l -lname "$PWD/*" | while read -r linkPath; do - rm "$linkPath" - echo "$linkPath" +find -L ~ -type l -lname "${PWD}/*" | while read -r link; do + echo "$link" + rm "$link" done -- cgit 1.4.1