Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
RodolfoSilva authored May 3, 2021
1 parent 2b51f3d commit 7074d38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

if [[ -z ${INPUT_SERVER} ]] || [[ -z ${INPUT_PASSWORD} ]] || [[ -z ${INPUT_APPNAME} ]]; then
if [[ -z ${INPUT_SERVER} ]] || [[ -z ${INPUT_PASSWORD} ]] || [[ -z ${INPUT_APP_NAME} ]]; then
echo "Invalid input. Some required arguments missing."
exit 1
fi

if [[ ! -z ${INPUT_TARBALL} ]]; then
caprover deploy -h $INPUT_SERVER -p $INPUT_PASSWORD -a $INPUT_APPNAME -t $INPUT_TARBALL
caprover deploy -h $INPUT_SERVER -p $INPUT_PASSWORD -a $INPUT_APP_NAME -t $INPUT_TARBALL
elif [[ ! -z ${INPUT_BRANCH} ]]; then
caprover deploy -h $INPUT_SERVER -p $INPUT_PASSWORD -a $INPUT_APPNAME -b $INPUT_BRANCH
caprover deploy -h $INPUT_SERVER -p $INPUT_PASSWORD -a $INPUT_APP_NAME -b $INPUT_BRANCH
else
echo "Invalid input. Either a tarball or a branch argument is required."
exit 1
Expand Down

0 comments on commit 7074d38

Please sign in to comment.