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 | 1750a4cc5e03521fb85932a14d1cf271d27ec1ea (patch) | |
tree | 3aa012b9adf711d9378094ae5d94f8d0b94658f5 /prune.sh | |
parent | Shorten .local ssh names (diff) | |
download | src-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 '')
-rwxr-xr-x | prune.sh (renamed from prune.zsh) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prune.zsh b/prune.sh index db85a9d1..31ab30cf 100755 --- a/prune.zsh +++ b/prune.sh @@ -1,5 +1,5 @@ -#!/usr/bin/env zsh -set -o errexit -o nounset -o pipefail +#!/bin/sh +set -e -u find -L ~ -type l -lname "$PWD/*" | while read -r linkPath; do rm "$linkPath" |