aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-01-17 10:32:30 -0500
committerChris Evich <cevich@redhat.com>2020-01-17 10:43:48 -0500
commitc183dddea642a98c3a0d7699ab3fd24036c61761 (patch)
tree31cd8d08c4df62fa43f013ee25fff7e45661d10a
parentacbb6c064dbcfcb8332e318602a728f311cfcf1a (diff)
downloadpodman-c183dddea642a98c3a0d7699ab3fd24036c61761.tar.gz
podman-c183dddea642a98c3a0d7699ab3fd24036c61761.tar.bz2
podman-c183dddea642a98c3a0d7699ab3fd24036c61761.zip
Minor: Bugfix in upload image
The release upload process always involves two filenames, however the second filename might (someday) be optional. The code allowed for this, however input validation did not. This change fixes the validation. Signed-off-by: Chris Evich <cevich@redhat.com>
-rwxr-xr-xcontrib/upldrel/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/upldrel/entrypoint.sh b/contrib/upldrel/entrypoint.sh
index b79f1c5bf..dc0e69676 100755
--- a/contrib/upldrel/entrypoint.sh
+++ b/contrib/upldrel/entrypoint.sh
@@ -4,7 +4,7 @@ set -e
source /usr/local/bin/lib_entrypoint.sh
-req_env_var GCPJSON_FILEPATH GCPNAME GCPPROJECT BUCKET FROM_FILEPATH TO_FILENAME ALSO_FILENAME
+req_env_var GCPJSON_FILEPATH GCPNAME GCPPROJECT BUCKET FROM_FILEPATH TO_FILENAME
[[ -r "$FROM_FILEPATH" ]] || \
die 2 ERROR Cannot read release archive file: "$FROM_FILEPATH"