bash to posix condition
This commit is contained in:
parent
ceecab041b
commit
09025c91ef
@ -11,8 +11,8 @@ if [ -z "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi >&2
|
fi >&2
|
||||||
|
|
||||||
if [ "$1" == "-c" -o "$1" == "--colour" ]; then
|
if [ "$1" = "-c" -o "$1" = "--colour" ]; then
|
||||||
curl --insecure -F "fileToPrint=@$2" 'https://we02pr06.ugent.be/hp/device/Print/Print'
|
echo curl --insecure -F "fileToPrint=@$2" 'https://we02pr06.ugent.be/hp/device/Print/Print'
|
||||||
else
|
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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user