summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/impressive-display4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/impressive-display b/bin/impressive-display
index c8966ef..5276354 100755
--- a/bin/impressive-display
+++ b/bin/impressive-display
@@ -319,10 +319,10 @@ function download_pdffile {
fi
DOWNLOADED_FILE="$workdir/$(basename $PDF_URI)"
- if [ -e "$workdir/secrets/default.secret" ]; then
+ if [ -f "$workdir/secrets/default.secret" ]; then
NETRCFILE=" --netrc-file $workdir/secrets/default.secret"
fi
- if [ -e "$workdir/secrets/$THIS_HOSTNAME.secret" ]; then
+ if [ -f "$workdir/secrets/$THIS_HOSTNAME.secret" ]; then
NETRCFILE=" --netrc-file $workdir/secrets/${THIS_HOSTNAME}.secret"
fi
if ! curl $NETRCFILE "$PDF_URI" 1> "$DOWNLOADED_FILE"; then