From 09025c91efc32aa9b9cf0aaa27f7da8da4d16153 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 2 Dec 2016 14:43:38 +0100 Subject: [PATCH] bash to posix condition --- local/bin/uprint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/local/bin/uprint b/local/bin/uprint index 35697f5..5e27f82 100755 --- a/local/bin/uprint +++ b/local/bin/uprint @@ -11,8 +11,8 @@ if [ -z "$1" ]; then exit 1 fi >&2 -if [ "$1" == "-c" -o "$1" == "--colour" ]; then - curl --insecure -F "fileToPrint=@$2" 'https://we02pr06.ugent.be/hp/device/Print/Print' +if [ "$1" = "-c" -o "$1" = "--colour" ]; then + echo curl --insecure -F "fileToPrint=@$2" 'https://we02pr06.ugent.be/hp/device/Print/Print' else - curl --insecure -F "localFile=@$1" 'https://we02pr04.ugent.be/hp/device/this.printservice?printThis' + echo curl --insecure -F "localFile=@$1" 'https://we02pr04.ugent.be/hp/device/this.printservice?printThis' fi