You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
345 B
Bash
15 lines
345 B
Bash
2 years ago
|
#/bin/bash
|
||
|
|
||
|
ARTIFACT_ID=$1
|
||
|
|
||
|
mkdir workingdir
|
||
|
echo "Unpacking ZIP."
|
||
|
unzip tmp/artifact_${ARTIFACT_ID}.zip -d tmp/artifact_${ARTIFACT_ID}
|
||
|
echo "Unpacking TAR."
|
||
|
for f in tmp/artifact_${ARTIFACT_ID}/* #Should only be one file
|
||
|
do
|
||
|
echo "Unpacking $f"
|
||
|
mkdir tmp/artifact_${ARTIFACT_ID}_inner
|
||
|
tar -xvf $f -C tmp/artifact_${ARTIFACT_ID}_inner
|
||
|
done
|