diff options
author | June McEnroe <june@causal.agency> | 2017-01-21 17:31:18 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-01-21 17:31:18 -0500 |
commit | 16a7e952a964da4da80ca7e2f0043e6ea5004312 (patch) | |
tree | 900d2158b83e37d9cbcc1bbece1fc649507fb063 /prune.sh | |
parent | Group git aliases (diff) | |
download | src-16a7e952a964da4da80ca7e2f0043e6ea5004312.tar.gz src-16a7e952a964da4da80ca7e2f0043e6ea5004312.zip |
Use zsh for shell scripts
Diffstat (limited to '')
-rwxr-xr-x | prune.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prune.sh b/prune.sh index af2379e5..cc6e2444 100755 --- a/prune.sh +++ b/prune.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env zsh # Remove symbolic links in ~ to files that no longer exist. @@ -7,6 +7,6 @@ set -o errexit -o nounset -o pipefail paths=$(find -L ~ -type l -lname "$PWD/*") for path in $paths; do - rm $path - echo $path + rm "$path" + echo "$path" done |