client: docker/lib_docker: make fatal for unsupported platform
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# docker-finance | modern accounting for the power-user
|
# docker-finance | modern accounting for the power-user
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -52,7 +52,7 @@ function main()
|
|||||||
|
|
||||||
<platform/user:tag>
|
<platform/user:tag>
|
||||||
|
|
||||||
platform \e[34;3mBase image platform (default: archlinux)\e[0m
|
platform \e[34;3mBase image platform (archlinux | ubuntu | dev-tools)\e[0m
|
||||||
user \e[34;3mUser to bind-mount with (default: ${USER})\e[0m
|
user \e[34;3mUser to bind-mount with (default: ${USER})\e[0m
|
||||||
tag \e[34;3mImage tag type to use (default: latest)\e[0m
|
tag \e[34;3mImage tag type to use (default: latest)\e[0m
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# docker-finance | modern accounting for the power-user
|
# docker-finance | modern accounting for the power-user
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -81,8 +81,7 @@ function lib_docker::docker()
|
|||||||
lib_utils::print_debug "global_platform=${global_platform}"
|
lib_utils::print_debug "global_platform=${global_platform}"
|
||||||
|
|
||||||
if [[ ! "$global_platform" =~ ^archlinux$|^ubuntu$|^dev-tools$ ]]; then
|
if [[ ! "$global_platform" =~ ^archlinux$|^ubuntu$|^dev-tools$ ]]; then
|
||||||
lib_utils::print_warning "unsupported platform '${global_platform}', defaulting to Arch Linux"
|
lib_utils::die_fatal "Unsupported platform '${global_platform}'"
|
||||||
global_platform="archlinux"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Parse tag
|
# Parse tag
|
||||||
|
|||||||
Reference in New Issue
Block a user