diff --git a/build b/build index aba2dde..7c54652 100755 --- a/build +++ b/build @@ -103,6 +103,7 @@ while getopts ':b:d:t:ncr:u:pxhs:w:akvo' OPTION; do ;; h) exit_abnormal 0 + return 0 ;; *) echo "unknown $0 option -$OPTARG" @@ -120,7 +121,7 @@ RUSER=${3:-$RUSER} IMAGE_NAME=$([[ $RUSER ]] && echo ${RUSER}/)${name}$([[ (! $exclude_distro) && $name ]] && echo "-")$([[ ! $exclude_distro ]] && echo ${LINUX_DISTRO}) # TODO writing to existing tag untags existing image so write a new tag to that image then continue -# [[ $(image_exists $IMAGE_NAME) ]] && [[ ! $overwrite ]] && { echo local image \'$(make_tag $IMAGE_NAME)\' exists use -o to overwrite; return 1; } +[[ $(image_exists $IMAGE_NAME) ]] && [[ ! $overwrite ]] && { echo local image \'$(make_tag $IMAGE_NAME)\' exists use -o to overwrite; return 1; } if [[ $BASE_IMAGE ]]; then echo determining DISTRO of base image: $BASE_IMAGE diff --git a/install b/install old mode 100644 new mode 100755 index e69de29..7ef0890 --- a/install +++ b/install @@ -0,0 +1,3 @@ +#!/bin/bash +ln -nsf $(dirname "$(realpath "$BASH_SOURCE")")/build /opt/bin/dbuild +dbuild -h \ No newline at end of file