Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2024-10-11 15:23:13 +02:00 committed by Andy Scherzinger
parent 3200a16f81
commit aff67498f1
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -8,6 +8,9 @@ upload() {
scripts/deleteOldComments.sh "$BRANCH" "$TYPE" "$PR" scripts/deleteOldComments.sh "$BRANCH" "$TYPE" "$PR"
cd $1 cd $1
pwd
find . -type d
find . -type f
find . -type d -exec curl > /dev/null 2>&1 -u $USER:$PASS -X MKCOL $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) \; find . -type d -exec curl > /dev/null 2>&1 -u $USER:$PASS -X MKCOL $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) \;
find . -type f -exec curl > /dev/null 2>&1 -u $USER:$PASS -X PUT $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) --upload-file {} \; find . -type f -exec curl > /dev/null 2>&1 -u $USER:$PASS -X PUT $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) --upload-file {} \;