Skip to content

Commit 67563b8

Browse files
committed
fix syntax error
Signed-off-by: Matthew Fisher <[email protected]>
1 parent 261bf1e commit 67563b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

entrypoint.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ fi
1414

1515
CONNECTION_METHOD=""
1616

17-
if ! [[ -z "$INPUT_CONNECTION_STRING" ]; then
17+
if [[ -n "$INPUT_CONNECTION_STRING" ]]; then
1818
CONNECTION_METHOD="--connection-string $INPUT_CONNECTION_STRING"
19-
elif ! [[ -z "$INPUT_SAS_TOKEN" ]]; then
20-
if ! [[ -z "$INPUT_ACCOUNT_NAME" ]]; then
19+
elif [[ -n "$INPUT_SAS_TOKEN" ]]; then
20+
if [[ -n "$INPUT_ACCOUNT_NAME" ]]; then
2121
CONNECTION_METHOD="--sas-token $INPUT_SAS_TOKEN --account-name $INPUT_ACCOUNT_NAME"
2222
else
2323
echo "account_name is required if using a sas_token. account_name is not set. Quitting."
@@ -29,24 +29,24 @@ else
2929
fi
3030

3131
ARG_OVERWRITE=""
32-
if ! [[ -z ${INPUT_OVERWRITE} ]]; then
32+
if [[ -n ${INPUT_OVERWRITE} ]]; then
3333
ARG_OVERWRITE="--overwrite true"
3434
fi
3535

3636
EXTRA_ARGS=""
37-
if ! [[ -z ${INPUT_EXTRA_ARGS} ]]; then
37+
if [[ -n ${INPUT_EXTRA_ARGS} ]]; then
3838
EXTRA_ARGS=${INPUT_EXTRA_ARGS}
3939
fi
4040

4141
VERB="upload-batch"
4242
CONTAINER_NAME_FLAG="--destination"
43-
if ! [[ -z ${INPUT_SYNC} ]]; then
43+
if [[ -n ${INPUT_SYNC} ]]; then
4444
VERB="sync"
4545
CONTAINER_NAME_FLAG="--container"
4646
fi
4747

4848
CLI_VERSION=""
49-
if ! [[ -z ${INPUT_CLI_VERSION} ]]; then
49+
if [[ -n ${INPUT_CLI_VERSION} ]]; then
5050
CLI_VERSION="==${INPUT_CLI_VERSION}"
5151
fi
5252

0 commit comments

Comments
 (0)