File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1414
1515CONNECTION_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."
2929fi
3030
3131ARG_OVERWRITE=" "
32- if ! [[ -z ${INPUT_OVERWRITE} ]]; then
32+ if [[ -n ${INPUT_OVERWRITE} ]]; then
3333 ARG_OVERWRITE=" --overwrite true"
3434fi
3535
3636EXTRA_ARGS=" "
37- if ! [[ -z ${INPUT_EXTRA_ARGS} ]]; then
37+ if [[ -n ${INPUT_EXTRA_ARGS} ]]; then
3838 EXTRA_ARGS=${INPUT_EXTRA_ARGS}
3939fi
4040
4141VERB=" upload-batch"
4242CONTAINER_NAME_FLAG=" --destination"
43- if ! [[ -z ${INPUT_SYNC} ]]; then
43+ if [[ -n ${INPUT_SYNC} ]]; then
4444 VERB=" sync"
4545 CONTAINER_NAME_FLAG=" --container"
4646fi
4747
4848CLI_VERSION=" "
49- if ! [[ -z ${INPUT_CLI_VERSION} ]]; then
49+ if [[ -n ${INPUT_CLI_VERSION} ]]; then
5050 CLI_VERSION=" ==${INPUT_CLI_VERSION} "
5151fi
5252
You can’t perform that action at this time.
0 commit comments