forked from EvergreenCrypto/docker-finance
client: lib_docker: make fatal if user not given
This commit is contained in:
@@ -78,6 +78,7 @@ function lib_docker::docker()
|
||||
IFS="/" read -ra _image <<<"$1"
|
||||
declare -gx global_platform="${_image[0]}"
|
||||
local -r _user="${_image[1]}"
|
||||
[ -z "$_user" ] && lib_utils::die_fatal "User not given for '${_image[*]}'"
|
||||
lib_utils::print_debug "global_platform=${global_platform}"
|
||||
|
||||
if [[ ! "$global_platform" =~ ^archlinux$|^ubuntu$|^dev-tools$ ]]; then
|
||||
|
||||
Reference in New Issue
Block a user