Skip to content

Commit

Permalink
check whether we unziped input dir from archive
Browse files Browse the repository at this point in the history
  • Loading branch information
bohendo committed Oct 5, 2023
1 parent 8ae2aa6 commit 20bc467
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/cloudexec/user_data.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ fi

echo "Unzipping input archive..."
unzip "${home}/input.zip" -d "${home}/"
if [[ ! -d "${home}/${INPUT_DIRECTORY}" ]]; then
echo "Error: Failed to unzip required ${INPUT_DIRECTORY} directory"
exit 1
fi

source "${home}/venv/bin/activate"

Expand Down

0 comments on commit 20bc467

Please sign in to comment.