Build: correct tarball copying to out folder and upload to s3

This commit is contained in:
BoykoAlex
2017-08-04 14:44:51 -04:00
parent f5e9f47a25
commit 5fcc93aea7
2 changed files with 18 additions and 1 deletions

View File

@@ -27,10 +27,13 @@ node ./node_modules/bundle-deps/bundle-deps .
npm pack
ls *.tgz
timestamp=`date -u +%Y%m%d%H%M`
for i in `ls *.tgz`; do
basename=$(basename $i)
cp $i $output/${basename/SNAPSHOT/$timestamp}
length = ${#basename}
cp $i $output/${basename:0:$length-4}-$timestamp${basename:$length-4:$length}
done
ls -la $output