summary refs log tree commit diff
path: root/prune.sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-27 17:00:47 -0400
committerJune McEnroe <june@causal.agency>2019-07-27 17:00:47 -0400
commit76c6a9b42a3604d30911c96d5ce4ae3c9be4de97 (patch)
treea923f81ad039cdacc7b1e29153a5a27ae2d30868 /prune.sh
parentAdd c11.pdf (diff)
downloadsrc-76c6a9b42a3604d30911c96d5ce4ae3c9be4de97.tar.gz
src-76c6a9b42a3604d30911c96d5ce4ae3c9be4de97.zip
Shell script style pass
Diffstat (limited to 'prune.sh')
-rwxr-xr-xprune.sh8
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