Skip to content

Commit

Permalink
Add quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDoctor0 authored Oct 29, 2023
1 parent 51801f7 commit 0144f6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

# Create archive or exit if command fails
# Create archive or exit if the command fails
set -eu

printf "\n📦 Creating %s archive...\n" "$INPUT_TYPE"
Expand Down Expand Up @@ -46,7 +46,7 @@ elif [ "$INPUT_TYPE" = "7z" ] || [ "$INPUT_TYPE" = "7zip" ]
then
if [ -z "$INPUT_EXCLUSIONS" ]
then
7z a -tzip $INPUT_FILENAME $INPUT_PATH $INPUT_CUSTOM || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
7z a -tzip "$INPUT_FILENAME" "$INPUT_PATH" $INPUT_CUSTOM || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
else
EXCLUSIONS=''

Expand All @@ -62,7 +62,7 @@ then
EXCLUSIONS+=$EXCLUSION
done

7z a -tzip $INPUT_FILENAME $INPUT_PATH $EXCLUSIONS $INPUT_CUSTOM || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
7z a -tzip "$INPUT_FILENAME" "$INPUT_PATH" $EXCLUSIONS $INPUT_CUSTOM || { printf "\n⛔ Unable to create %s archive.\n" "$INPUT_TYPE"; exit 1; }
fi
elif [ "$INPUT_TYPE" = "tar" ] || [ "$INPUT_TYPE" = "tar.gz" ]
then
Expand Down

0 comments on commit 0144f6c

Please sign in to comment.