mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: cli: de-hardcode build and docker's interdependence, via DOCKER_CLI_CMD
- `undecided` now directly sends to `build`, which might send to `docker`, which relaunches `build` in Docker; - the _sending to Docker_ part probably needs refactor
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
function cli_undecided_pre_run() {
|
||||
# If undecided, run the 'build' command.
|
||||
# 'build' will then defer to 'docker' if ran on Darwin.
|
||||
# so save a trip, check if we're on Darwin right here.
|
||||
if [[ "$(uname)" == "Linux" ]]; then
|
||||
display_alert "Linux!" "func cli_undecided_pre_run go to build" "debug"
|
||||
ARMBIAN_CHANGE_COMMAND_TO="build"
|
||||
else
|
||||
display_alert "Not under Linux; use docker..." "func cli_undecided_pre_run go to docker" "debug"
|
||||
ARMBIAN_CHANGE_COMMAND_TO="docker"
|
||||
fi
|
||||
display_alert "cli_undecided_pre_run" "func cli_undecided_pre_run go to build" "debug"
|
||||
ARMBIAN_CHANGE_COMMAND_TO="build"
|
||||
}
|
||||
|
||||
function cli_undecided_run() {
|
||||
|
||||
Reference in New Issue
Block a user