diff --git a/cmd/cloudexec/user_data.sh.tmpl b/cmd/cloudexec/user_data.sh.tmpl index 146d1ba..8dc7a69 100644 --- a/cmd/cloudexec/user_data.sh.tmpl +++ b/cmd/cloudexec/user_data.sh.tmpl @@ -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"