summary refs log tree commit diff
path: root/pdf.zsh
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-03-28 13:13:51 -0400
committerJune McEnroe <programble@gmail.com>2018-03-28 13:38:22 -0400
commit2664c3dcc46b17dffb7c673435f52af69ce8d956 (patch)
treea82c6990d55ac68813ca5adee13ace2ee1816e0a /pdf.zsh
parentSort extern crate lines with \c (diff)
downloadsrc-2664c3dcc46b17dffb7c673435f52af69ce8d956.tar.gz
src-2664c3dcc46b17dffb7c673435f52af69ce8d956.zip
Use [[ ]] in zsh scripts
Diffstat (limited to '')
-rwxr-xr-xpdf.zsh2
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"
 }