summary refs log tree commit diff
path: root/prune.sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-16 18:00:42 -0400
committerJune McEnroe <june@causal.agency>2018-08-16 18:00:42 -0400
commit1750a4cc5e03521fb85932a14d1cf271d27ec1ea (patch)
tree3aa012b9adf711d9378094ae5d94f8d0b94658f5 /prune.sh
parentShorten .local ssh names (diff)
downloadsrc-1750a4cc5e03521fb85932a14d1cf271d27ec1ea.tar.gz
src-1750a4cc5e03521fb85932a14d1cf271d27ec1ea.zip
Port all scripts to sh
Not hard, but having to escape ( ) inside [ ] had me confused for a bit.
Diffstat (limited to 'prune.sh')
-rwxr-xr-xprune.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/prune.sh b/prune.sh
new file mode 100755
index 00000000..31ab30cf
--- /dev/null
+++ b/prune.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e -u
+
+find -L ~ -type l -lname "$PWD/*" | while read -r linkPath; do
+	rm "$linkPath"
+	echo "$linkPath"
+done