Skip to content
Snippets Groups Projects
Commit df3da6f9 authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'fix/path' into 'master'

Fix dependency path

See merge request !4
parents dfa1a71e e19c5a11
Branches master
No related tags found
1 merge request!4Fix dependency path
Pipeline #2001 passed with stages
in 22 seconds
......@@ -9,7 +9,7 @@ export EXPIRE_AGE_DAYS
echo '======'
date
s3cmd --config=/s3_config ls s3://"${BUCKET_NAME}" | while read -r LINE;
/usr/local/bin/s3cmd --config=/s3_config ls s3://"${BUCKET_NAME}" | while read -r LINE;
do
CREATE_DATE=$(echo "$LINE" | awk '{print $1" "$2}')
CREATE_DATE=$(date -d"$CREATE_DATE" +%s)
......@@ -21,7 +21,7 @@ s3cmd --config=/s3_config ls s3://"${BUCKET_NAME}" | while read -r LINE;
echo "$FILE_NAME"
if [[ $FILE_NAME != "" ]]
then
s3cmd --config=/s3_config del "$FILE_NAME"
/usr/local/bin/s3cmd --config=/s3_config del "$FILE_NAME"
fi
fi
done;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment