client: lib_env: fix handling of global command
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
|
||||||
@@ -120,12 +120,10 @@ function lib_env::env()
|
|||||||
lib_env::__write "$_env_file"
|
lib_env::__write "$_env_file"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
[ -z "$global_command" ] && lib_utils::die_fatal
|
# shellcheck disable=SC2154
|
||||||
[ -z "$global_basename" ] && lib_utils::die_fatal
|
if [ "$global_command" != "gen" ]; then
|
||||||
|
|
||||||
if [[ -z "$global_command" || "$global_command" != "gen" ]]; then
|
|
||||||
lib_utils::die_fatal \
|
lib_utils::die_fatal \
|
||||||
"Client environment not found! Run gen command'"
|
"Client environment not found! Run 'gen' command"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lib_utils::print_info \
|
lib_utils::print_info \
|
||||||
|
|||||||
Reference in New Issue
Block a user