summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schlüter <bschlueter@posteo.de>2016-12-30 14:51:07 +0100
committerBenjamin Schlüter <bschlueter@posteo.de>2016-12-30 14:51:07 +0100
commitbde813d9fe0a4b393af1205d06c80d8e01df7045 (patch)
tree1c3816f13e73014170edffe0407c0e8ec2753fe0
parent3d2a3db05e7ceace12581367e042629b368bf22f (diff)
downloadimpressive-display-bde813d9fe0a4b393af1205d06c80d8e01df7045.tar.gz
impressive-display-bde813d9fe0a4b393af1205d06c80d8e01df7045.tar.bz2
impressive-display-bde813d9fe0a4b393af1205d06c80d8e01df7045.zip
Fix regexp use for parsing host-specific options.
-rwxr-xr-xbin/impressive-display4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/impressive-display b/bin/impressive-display
index f8c25cc..af39262 100755
--- a/bin/impressive-display
+++ b/bin/impressive-display
@@ -142,13 +142,13 @@ if `echo ${!DISPLAYS[@]} | grep -q "$THIS_HOSTNAME"`; then
$OUTPUT "INFO: $THIS_HOSTNAME has extra properties. loading it.."
if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep -q "pdf_uri="; then
- PDF_URI=`echo ${DISPLAYS[$THIS_HOSTNAME]} | sed -r -e 's/.*(^|\|)pdf_uri=([^|]*).*/\1/'`
+ PDF_URI=`echo ${DISPLAYS[$THIS_HOSTNAME]} | sed -r -e 's/(^|.*\|)pdf_uri=([^|]*).*/\2/'`
else
PDF_URI="$DEFAULT_PDF_URI"
fi
if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep -q "res="; then
- RESOLUTION=`echo ${DISPLAYS[$THIS_HOSTNAME]} | sed -r -e 's/.*(^|\|)res=([^|]*).*/\1/'`
+ RESOLUTION=`echo ${DISPLAYS[$THIS_HOSTNAME]} | sed -r -e 's/(^|.*\|)res=([^|]*).*/\2/'`
else
RESOLUTION="$DEFAULT_RESOLUTION"
fi