Skip to content
Snippets Groups Projects
Commit 5335a18f authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Fixes #72

parent 6dfaf863
Branches
Tags v0.1.0
No related merge requests found
...@@ -135,7 +135,7 @@ run_cmd() { ...@@ -135,7 +135,7 @@ run_cmd() {
# Checks if a file exists on the remote location # Checks if a file exists on the remote location
# $1: Path to the file to check on the server # $1: Path to the file to check on the server
dav_exists() { dav_exists() {
curl --head --silent --location ${DOCSERVER}/${1} | grep HTTP | tail -n 1 | grep -q 200 curl --head --silent --user "${DOCUSER}:${DOCPASS}" --location ${DOCSERVER}/${1} | grep HTTP | tail -n 1 | grep -q 200
return $? return $?
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment