Skip to content
Snippets Groups Projects
Unverified Commit 5df1f871 authored by Michael Gajda's avatar Michael Gajda :rat: Committed by GitHub
Browse files

New URL and comments

Add comments and the new URL for the shared directory
parent 55aaefd9
No related branches found
No related tags found
Loading
...@@ -8,11 +8,14 @@ USAGE="$0 <FILE/DIR>" ...@@ -8,11 +8,14 @@ USAGE="$0 <FILE/DIR>"
# check parameter # check parameter
: ${1?Usage: $USAGE} : ${1?Usage: $USAGE}
# Target-dir will be repo and branch
DIR=$(basename ${TRAVIS_REPO_SLUG})-${TRAVIS_BRANCH} DIR=$(basename ${TRAVIS_REPO_SLUG})-${TRAVIS_BRANCH}
[ -z $DIR ] && echo "Travis env not found" && exit 1 [ -z $DIR ] && echo "$0: Could not find a Travis env" && exit 1
# Creating a directory with an recursive upload is not possible with curl, use helper-script
wget https://raw.githubusercontent.com/foss-ag/script_curl-dirup/v1.0.1/curl-dirup.sh -O curl-dirup.sh && chmod +x curl-dirup.sh wget https://raw.githubusercontent.com/foss-ag/script_curl-dirup/v1.0.1/curl-dirup.sh -O curl-dirup.sh && chmod +x curl-dirup.sh
rm -rf $DIR 2>/dev/null rm -rf $DIR 2>/dev/null
mkdir -p ${DIR} mkdir -p ${DIR}
cp -a $@ ${DIR} cp -a $@ ${DIR}
./curl-dirup.sh https://cloud.foss-ag.de/remote.php/webdav/foss-ag_buildbot foss-ag_buildbot:$PDFPW ${DIR} # Actual upload
./curl-dirup.sh https://cloud.foss-ag.de/public.php/webdav 7bm6b2A8zTdHBE4:$PDFPW ${DIR}
rm -rf $DIR 2>/dev/null rm -rf $DIR 2>/dev/null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment