client: docker/lib_docker: make fatal for unsupported platform

This commit is contained in:
2025-08-12 10:31:37 -07:00
parent 07d1cd13f1
commit fd338b60f6
2 changed files with 4 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
# 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
# it under the terms of the GNU General Public License as published by
@@ -52,7 +52,7 @@ function main()
<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
tag \e[34;3mImage tag type to use (default: latest)\e[0m

View File

@@ -2,7 +2,7 @@
# 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
# 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}"
if [[ ! "$global_platform" =~ ^archlinux$|^ubuntu$|^dev-tools$ ]]; then
lib_utils::print_warning "unsupported platform '${global_platform}', defaulting to Arch Linux"
global_platform="archlinux"
lib_utils::die_fatal "Unsupported platform '${global_platform}'"
fi
# Parse tag