imagebuilder: subcommand → imagetype

This commit is contained in:
Starbeamrainbowlabs 2020-09-05 21:01:07 +01:00
parent 2964c006e7
commit 33ee5849db
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 3 additions and 3 deletions

View File

@ -158,13 +158,13 @@ case "${subcommand}" in
fi
task_end "$?";
if [[ "${subcommand}" == "base-nopush" ]]; then
echo "Nopush mode invoked, not checking output directory or pushing to docker registry";
if [[ "${imagetype}" == "base-nopush" ]]; then
echo "${HC}Nopush mode invoked, not checking output directory or pushing to docker registry${RS}";
exit 0;
fi
if [[ ! -d "${output_dir}" ]]; then
echo -e "Error: The builder script failed to create the output directory.";
echo -e "${FRED}${HC}Error: The builder script failed to create the output directory (expeting directory at ${FBLE}${output_dir}${FRED}, but found nothing).${RS}";
exit 6;
fi