diff options
author | DanielsLPecke <daniel.letsplay007@gmail.com> | 2016-11-14 11:48:10 +0100 |
---|---|---|
committer | DanielsLPecke <daniel.letsplay007@gmail.com> | 2016-11-14 11:48:10 +0100 |
commit | 4265d9a6e8a2b295bcd98fcff47660015668fd4e (patch) | |
tree | 13e57bd57c4e428e5c59c917f042f2d7f3d299dc | |
parent | acd1ecc8fe2f3a46f5a298252ddd03a33e37cd2d (diff) | |
download | impressive-display-4265d9a6e8a2b295bcd98fcff47660015668fd4e.tar.gz impressive-display-4265d9a6e8a2b295bcd98fcff47660015668fd4e.tar.bz2 impressive-display-4265d9a6e8a2b295bcd98fcff47660015668fd4e.zip |
Remove debug messages and set IF's quiet
-rwxr-xr-x | bin/impressive-display | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index e215ec8..bb890d7 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -138,26 +138,23 @@ if [ -n "$FAKE_HOSTNAME" ]; then THIS_HOSTNAME="$FAKE_HOSTNAME" fi -echo "$THIS_HOSTNAME" -echo "${!DISPLAYS[@]}" -for display in "${!DISPLAYS[@]}"; do echo "$display - ${DISPLAYS[$display]}"; done -if echo ${!DISPLAYS[@]} | grep -q "$THIS_HOSTNAME"; then +if `echo ${!DISPLAYS[@]} | grep -q "$THIS_HOSTNAME"`; then $OUTPUT "INFO: $THIS_HOSTNAME has extra properties. loading it.." - if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep "pdf_uri="; then + if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep -q "pdf_uri="; then 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 "res="; then + if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep -q "res="; then RESOLUTION=`echo ${DISPLAYS[$THIS_HOSTNAME]} | sed -r -e 's/.*res=([^|]*).*/\1/'` else RESOLUTION="$DEFAULT_RESOLUTION" fi - if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep "creds="; then + if echo ${DISPLAYS[$THIS_HOSTNAME]} | grep -q "creds="; then PDF_URL_CREDS=`echo ${DISPLAYS[$THIS_HOSTNAME]} | sed -r -e 's/.*creds=([^|]*).*/\1/'` else PDF_URL_CREDS="$DEFAULT_PDF_URL_CREDS" |