Skip to content
Snippets Groups Projects
Commit 138945b5 authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

fixed image-file testing

parent 6c15ac11
No related merge requests found
...@@ -301,7 +301,7 @@ prepare_image_publisher() { ...@@ -301,7 +301,7 @@ prepare_image_publisher() {
echo -ne "setting docker auth config ..." echo -ne "setting docker auth config ..."
if [ "${dockerconfig}" == "" ];then if [ "${dockerconfig}" == "" ];then
echo "failed! No auth config found" echo "failed! No auth config found"
echo "Please be sure to have provide the config via option docker-config for your build environment" echo "Please be sure to provide the docker config via option --docker-config"
return 1 return 1
fi fi
...@@ -362,7 +362,13 @@ import_image() { ...@@ -362,7 +362,13 @@ import_image() {
local out local out
echo -ne "importing image..." echo -ne "importing image..."
if [ ! -e ${image_file} ];then if [ "${image_file}" == "" ];then
echo "failed! No image file specified"
echo "Make sure to specify an image file via --input"
return 1
fi
if [ ! -f $image_file ];then
echo "failed" echo "failed"
echo "${image_file} not found" echo "${image_file} not found"
return 1 return 1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment