add install script to /opt/bin
parent
dfc0ecf966
commit
6e0856c5de
3
build
3
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
|
||||
|
|
Loading…
Reference in New Issue