diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-11-21 15:28:04 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-11-21 15:28:04 +0100 |
commit | d558bb836abf0aba54b250673bdfbe96810b2b07 (patch) | |
tree | e4219dfb6ce20ae30ef1cb4ce9412f710de0effe | |
parent | 8936449de25f68bbb81098b6be185dabd6afef5d (diff) | |
download | impressive-display-d558bb836abf0aba54b250673bdfbe96810b2b07.tar.gz impressive-display-d558bb836abf0aba54b250673bdfbe96810b2b07.tar.bz2 impressive-display-d558bb836abf0aba54b250673bdfbe96810b2b07.zip |
DISPLAYS hashmap: Be a bit more precise where new fields begin.
-rwxr-xr-x | bin/impressive-display | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index 5e9e27e..ad35238 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=([^|]*).*/\1/'` 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=([^|]*).*/\1/'` else RESOLUTION="$DEFAULT_RESOLUTION" fi |