From 5870c6f9dcafb507e07dfbcc3294a778b8de496d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 18 Nov 2016 12:27:33 +0100 Subject: Move trap command below cleanup() function. --- bin/impressive-display | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/impressive-display b/bin/impressive-display index 977c4f3..965fc6c 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -83,9 +83,6 @@ IMPRESSIVE_OPTIONS="--transition None" # write some debugging output to stdout when downloading a remote PDF DEBUG_DOWNLOADS="" - -trap "cleanup" SIGINT SIGTERM ERR EXIT - if type -p xrandr 1>/dev/null; then currentOutput=`echo "$(xrandr)" | grep -w 'connected' | sed -r -e 's/connected.*//' | head -n 1` fi @@ -227,6 +224,7 @@ function cleanup { done } +trap "cleanup" SIGINT SIGTERM ERR EXIT function pdf_is_portrait { -- cgit v1.2.3