diff options
author | June McEnroe <june@causal.agency> | 2019-07-27 17:00:47 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-07-27 17:00:47 -0400 |
commit | a90eeec85067b6d0a19c9be69530eebed886da86 (patch) | |
tree | 154de9e0c023c5294fb8d79bf755d5715e55ce5a /prune.sh | |
parent | Add c11.pdf (diff) | |
download | src-a90eeec85067b6d0a19c9be69530eebed886da86.tar.gz src-a90eeec85067b6d0a19c9be69530eebed886da86.zip |
Shell script style pass
Diffstat (limited to 'prune.sh')
-rwxr-xr-x | prune.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |