diff --git a/tests/wopi-test.sh b/tests/wopi-test.sh index 9ad9dc7197..520bbfa9ba 100755 --- a/tests/wopi-test.sh +++ b/tests/wopi-test.sh @@ -17,7 +17,7 @@ curl $NEXTCLOUD_URL/status.php --max-time 5 --retry 5 --retry-delay 0 --retry-ma curl -X PUT -u $USERNAME:$PASSWORD $NEXTCLOUD_URL/remote.php/webdav/$FILENAME.odt -s PROPFIND_RESULT=$(curl -X PROPFIND -u $USERNAME:$PASSWORD $NEXTCLOUD_URL/remote.php/webdav/$FILENAME.odt --data '' -s) -FILE_ID=$(echo $PROPFIND_RESULT | ggrep -ohE '(.*)' | cut -d'>' -f 2 | cut -d'<' -f 1) +FILE_ID=$(echo $PROPFIND_RESULT | grep -ohE '(.*)' | cut -d'>' -f 2 | cut -d'<' -f 1) COOKIEJAR=/tmp/cookie-jar rm -f $COOKIEJAR @@ -37,4 +37,4 @@ WOPI_URL="$NEXTCLOUD_URL/index.php/apps/richdocuments/wopi/files/$FILE_ID" echo "WOPI URL: $WOPI_URL" echo "WOPI token generated: $WOPI_TOKEN" -docker run --add-host nextcloud.local:${HOST_IP} --rm tylerbutler/wopi-validator -- -w $WOPI_URL -t $WOPI_TOKEN -l 0 "$@" \ No newline at end of file +docker run --add-host nextcloud.local:${HOST_IP} --rm tylerbutler/wopi-validator -- -w $WOPI_URL -t $WOPI_TOKEN -l 0 "$@"