diff --git a/bbb-libreoffice/assets/convert-local.sh b/bbb-libreoffice/assets/convert-local.sh index 8e9f0a00a2..252a8e6943 100644 --- a/bbb-libreoffice/assets/convert-local.sh +++ b/bbb-libreoffice/assets/convert-local.sh @@ -23,8 +23,8 @@ fi; mkdir -p "/tmp/bbb-soffice-$(whoami)/" tempDir="$(mktemp -d -p /tmp/bbb-soffice-$(whoami)/)" -source=${1} -dest=${2} +source="$1" +dest="$2" #If output format is missing, define PDF convertTo="${3:-pdf}" diff --git a/bbb-libreoffice/assets/convert-remote.sh b/bbb-libreoffice/assets/convert-remote.sh index 74c672146c..8be6bfc6e5 100644 --- a/bbb-libreoffice/assets/convert-remote.sh +++ b/bbb-libreoffice/assets/convert-remote.sh @@ -21,12 +21,12 @@ elif (( $# == 1 )); then fi; -source=${1} -dest=${2} +source="$1" +dest="$2" #If output format is missing, define PDF convertTo="${3:-pdf}" -curl -X POST "http://127.0.0.1:8080/lool/convert-to/$convertTo" -H "accept: application/octet-stream" -H "Content-Type: multipart/form-data" -F "data=@${source}" > ${dest} +curl -X POST "http://127.0.0.1:8080/lool/convert-to/$convertTo" -H "accept: application/octet-stream" -H "Content-Type: multipart/form-data" -F "data=@${source}" > "${dest}" exit 0