diff options
author | June McEnroe <programble@gmail.com> | 2017-01-21 17:31:18 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-01-21 17:31:18 -0500 |
commit | 2adcfc1787030ecaa9917565d43f0c2c4ab4108d (patch) | |
tree | fcdf44051f29f8131b4e82a908985062c09ee953 /prune.sh | |
parent | Group git aliases (diff) | |
download | src-2adcfc1787030ecaa9917565d43f0c2c4ab4108d.tar.gz src-2adcfc1787030ecaa9917565d43f0c2c4ab4108d.zip |
Use zsh for shell scripts
Diffstat (limited to 'prune.sh')
-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 |