diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-03-29 20:27:13 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-03-29 20:27:13 +0200 |
commit | b2d60c17d2a72e280692806d20624ce47fbca045 (patch) | |
tree | c0afb8cc5486ec802a5be86da4402e0bd9e10542 | |
parent | a78fb9a3f64de0c4495dcbfb7498ca5bdf4f6b40 (diff) | |
download | impressive-display-b2d60c17d2a72e280692806d20624ce47fbca045.tar.gz impressive-display-b2d60c17d2a72e280692806d20624ce47fbca045.tar.bz2 impressive-display-b2d60c17d2a72e280692806d20624ce47fbca045.zip |
Drop using redundant variable $pdffile.
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | impressive-display/bin/impressive-display | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog index 1ff3763..ca9985e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,7 @@ impressive-display (0.2.1) UNRELEASED; urgency=medium * Support existing impressive-display via exiting impressive (Q hotkey). Furthermore, make sure to kill impressive only, if it its PID still exists. + * Drop using redundant variable $pdffile. -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 29 Mar 2016 20:14:17 +0200 diff --git a/impressive-display/bin/impressive-display b/impressive-display/bin/impressive-display index c14b5f5..1e110b8 100755 --- a/impressive-display/bin/impressive-display +++ b/impressive-display/bin/impressive-display @@ -236,8 +236,6 @@ function local_pdffile { merge_portrait_documents - pdffile="$pdffile_display" - } function download_pdffile { @@ -291,7 +289,7 @@ function reloadable_impressive { while [ -e "$session_lock" ]; do - impressive ${IMPRESSIVE_OPTIONS} --fake-fullscreen --wrap -a ${SLIDE_DURATION} --nologo "${pdffile}" 1>/dev/null & + impressive ${IMPRESSIVE_OPTIONS} --fake-fullscreen --wrap -a ${SLIDE_DURATION} --nologo "${pdffile_display}" 1>/dev/null & impressive_pid=$! echo -n "$impressive_pid" > "$impressive_lock" @@ -330,14 +328,12 @@ if [ -n "$PDF_URL" ]; then echo "INFO: PDF_URL is configured. Using PDF file from given URL." create_lock download_loop - pdffile="$pdffile_display" elif [ -n "$PDF_FILE" ]; then echo "INFO: PDF_FILE is configured. Using local PDF." create_lock local_pdffile - pdffile="$pdffile_display" else |