mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* upgrade preparation fixes * remove fdescribe * update browserlist config * ng8 * ngrx 8 * ng9 * ngrx 9 * remove entryComponents * unit tests * ng 10 * latest ADF * fix unit tests * fix lint * update deps and travis * code fixes * upgrade webdriver * cleanup libs * fix test * update test * Use browserTarget as target for lite-serve * Use the update webdriver with CI condition * Use version console.log('load', path * Fix path sh * Try to use remote env * Add the . to export variabled * Use hardcoded chrome version * Remove the run remote * Avoid to use the escape * Skip flaky e2e and raise issue ACA-3615 * SKip failing e2e * Skip flaky e2e and raise issue ACA-3615 * Fix close app toolbar menu and preconditions + tests of mark-favorite.test.ts Personal Files section * Fix mark-favorite tests * Fix ext-header test * Fix new-menu tests * Fix lint * no message * Fix viewer tests Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com> Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
32 lines
785 B
Bash
Executable File
32 lines
785 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
show_help() {
|
|
echo "Usage: artifact-from-s3.sh <options>"
|
|
echo ""
|
|
echo "-a or --artifact [mandatory]: path to the s3 artifact (tar.bz2) to download and extract"
|
|
echo "-o or --output [mandatory]: directory to extract the archive to"
|
|
}
|
|
|
|
while [[ $1 == -* ]]; do
|
|
case "$1" in
|
|
-h|--help|-\?) show_help; exit 0;;
|
|
-a|--artifact) ARTIFACT=$2; shift 2;;
|
|
-o|--output) OUTPUT=$2; shift 2;;
|
|
-*) shift;;
|
|
esac
|
|
done
|
|
|
|
if [ "${ARTIFACT}" == "" ] || [ "${OUTPUT}" == "" ]
|
|
then
|
|
show_help;
|
|
exit 1
|
|
fi
|
|
|
|
test ! -d $OUTPUT && mkdir -p $OUTPUT
|
|
aws s3 cp $ARTIFACT ./s3-artifact.tmp
|
|
echo 'artifact download done'
|
|
tar -xvf ./s3-artifact.tmp -C $OUTPUT >&/dev/null
|
|
echo 'tar the artifact done'
|
|
rm ./s3-artifact.tmp
|
|
echo 'remove tmp file'
|