Skip to content
Snippets Groups Projects
Commit 40d474ed authored by Michael Gajda's avatar Michael Gajda :rat:
Browse files

Remove rm -rf

Calling rm -rf on some variable could lead to dangerous things if this script is run on a productive machine and not an travis environment. Technically there is no need to clean up the output directory so it should be save to just remove this command.
parent 5df1f871
Branches
No related tags found
No related merge requests found
...@@ -13,9 +13,8 @@ DIR=$(basename ${TRAVIS_REPO_SLUG})-${TRAVIS_BRANCH} ...@@ -13,9 +13,8 @@ DIR=$(basename ${TRAVIS_REPO_SLUG})-${TRAVIS_BRANCH}
[ -z $DIR ] && echo "$0: Could not find a Travis env" && 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 # 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
mkdir -p ${DIR} mkdir -p ${DIR} 2>/dev/null
cp -a $@ ${DIR} cp -a $@ ${DIR}
# Actual upload # Actual upload
./curl-dirup.sh https://cloud.foss-ag.de/public.php/webdav 7bm6b2A8zTdHBE4:$PDFPW ${DIR} ./curl-dirup.sh https://cloud.foss-ag.de/public.php/webdav 7bm6b2A8zTdHBE4:$PDFPW ${DIR}
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