bash to posix condition

This commit is contained in:
Felix Van der Jeugt 2016-12-02 14:43:38 +01:00
parent ceecab041b
commit 09025c91ef

View File

@ -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