From 703c3498b8293139a0cde95b55ac5d4604260f7e Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Sun, 30 Jun 2024 23:24:37 +0200 Subject: [PATCH] Remove noninteractive variable --- bootstrap.sh | 1 - install.sh | 2 -- 2 files changed, 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 4d03f28..7f2a0a6 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -145,7 +145,6 @@ function main() { ensureBinary 'docopts' ensureDocopts || return print 'Will now run the installer.' - local -A colors=() errColors=() [ -t 1 ] && tput cnorm isDebug && export MACOS_SYSTEM_DEBUG=true "${tmpdir}/install.sh" "$@" diff --git a/install.sh b/install.sh index 6c35a7b..a241a1d 100755 --- a/install.sh +++ b/install.sh @@ -132,8 +132,6 @@ function main() { lop -- -d "Current working dir is: `pwd`" lop -- -d "Called main with $# args: $*" - [[ -n ${noninteractive} && -z ${config} ]] && { lop -- -e 'A config file must be provided in noninteractive mode.'; return 10 } - [[ ${host_specific_only} == 'false' ]] && modpath+=("${_DIR}/modules") [[ ${host_specific} == 'true' || ${host_specific_only} == 'true' ]] && modpath+=("${_DIR}/modules/host-specific") loadModules -v modulesToInstall ${$(echo -m):^^modpath} "${module[@]}"