diff options
author | June McEnroe <programble@gmail.com> | 2018-03-28 13:13:51 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-03-28 13:38:22 -0400 |
commit | 2664c3dcc46b17dffb7c673435f52af69ce8d956 (patch) | |
tree | a82c6990d55ac68813ca5adee13ace2ee1816e0a /pdf.zsh | |
parent | Sort extern crate lines with \c (diff) | |
download | src-2664c3dcc46b17dffb7c673435f52af69ce8d956.tar.gz src-2664c3dcc46b17dffb7c673435f52af69ce8d956.zip |
Use [[ ]] in zsh scripts
Diffstat (limited to '')
-rwxr-xr-x | pdf.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf.zsh b/pdf.zsh index a04eda66..79e3309c 100755 --- a/pdf.zsh +++ b/pdf.zsh @@ -4,7 +4,7 @@ set -o errexit -o nounset -o pipefail mkdir -p pdf fetch() { - [ -f "pdf/$1" ] && return + [[ -f "pdf/$1" ]] && return curl --silent --show-error --output "pdf/$1" "$2" echo "pdf/$1" } |