diff options
author | June McEnroe <june@causal.agency> | 2018-08-16 18:00:42 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-16 18:00:42 -0400 |
commit | 0460970a937191ee3ff70658503e7407d4cf6caa (patch) | |
tree | b349321d4d920e9104603da0dd123079346b34eb /prune.sh | |
parent | Shorten .local ssh names (diff) | |
download | src-0460970a937191ee3ff70658503e7407d4cf6caa.tar.gz src-0460970a937191ee3ff70658503e7407d4cf6caa.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-x | prune.sh | 7 |
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 |