We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2113173 commit 080160aCopy full SHA for 080160a
entrypoint.sh
@@ -48,7 +48,15 @@ then
48
then
49
tar -zcvf $INPUT_FILENAME $INPUT_PATH || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
50
else
51
- tar -zcvf $INPUT_FILENAME --exclude=$INPUT_EXCLUSIONS $INPUT_PATH || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
+ EXCLUSIONS=''
52
+
53
+ for EXCLUSION in $INPUT_EXCLUSIONS
54
+ do
55
+ EXCLUSIONS+=" --exclude="
56
+ EXCLUSIONS+=$EXCLUSION
57
+ done
58
59
+ tar $EXCLUSIONS -zcvf $INPUT_FILENAME $INPUT_PATH || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
60
fi
61
62
printf "\n⛔ Invalid archiving tool.\n"; exit 1;
0 commit comments