Closed jerkmcjerkface closed 3 years ago
I'm having a weird issue, when running ./linuxify install, it immediately exits when it gets to a package that isn't installed:
bash -x linuxify install + set -euo pipefail ++ sysctl -a ++ /usr/bin/awk '/machdep.cpu.brand_string/{print $2}' + export 'CPU_BRAND_STRING=Intel(R)' + CPU_BRAND_STRING='Intel(R)' + linuxify_formulas=("watch" "wget" "wdiff" "autoconf" "coreutils" "binutils" "diffutils" "ed" "findutils" "gawk" "gnu-indent" "gnu-sed" "gnu-tar" "gnu-which" "grep" "gzip" "screen" "bash" "emacs" "gpatch" "less" "m4" "make" "nano" "bison" "flex" "libressl" "file-formula" "git" "openssh" "perl" "python" "rsync" "unzip" "vim") + linuxify_main install + '[' 1 -eq 1 ']' + case $1 in + linuxify_install + linuxify_check_os + [[ darwin19 =~ darwin* ]] + linuxify_check_brew + command -v brew + linuxify_set_prefix ++ brew --prefix + export BREW_PREFIX=/usr/local + BREW_PREFIX=/usr/local + linuxify_check_dirs + result=0 + for dir in '${BREW_PREFIX}/bin' '${BREW_PREFIX}/sbin' + [[ ! -d /usr/local/bin ]] + [[ ! -w /usr/local/bin ]] + for dir in '${BREW_PREFIX}/bin' '${BREW_PREFIX}/sbin' + [[ ! -d /usr/local/sbin ]] + [[ ! -w /usr/local/sbin ]] + return 0 + (( i=0 )) + (( i<35 )) ++ brew ls --versions watch + INSTALLED='watch 3.3.17' + [[ -n watch 3.3.17 ]] + echo 'Found Existing watch - watch 3.3.17' Found Existing watch - watch 3.3.17 + (( i++ )) + (( i<35 )) ++ brew ls --versions wget + INSTALLED='wget 1.21.1' + [[ -n wget 1.21.1 ]] + echo 'Found Existing wget - wget 1.21.1' Found Existing wget - wget 1.21.1 + (( i++ )) + (( i<35 )) ++ brew ls --versions wdiff + INSTALLED='wdiff 1.2.2_2' + [[ -n wdiff 1.2.2_2 ]] + echo 'Found Existing wdiff - wdiff 1.2.2_2' Found Existing wdiff - wdiff 1.2.2_2 + (( i++ )) + (( i<35 )) ++ brew ls --versions autoconf + INSTALLED= ~/Development/linuxify master >
It just returns to the prompt, something about this test returning blank makes it bail out:
INSTALLED=$(brew ls --versions ${linuxify_formulas[i]}) if [[ -n $INSTALLED ]]; then echo "Found Existing ${linuxify_formulas[i]} - ${INSTALLED}" else echo "Installing ${linuxify_formulas[i]}" brew install ${linuxify_formulas[i]} fi
I ran into the exact same issue earlier this week.
I'm having a weird issue, when running ./linuxify install, it immediately exits when it gets to a package that isn't installed:
It just returns to the prompt, something about this test returning blank makes it bail out: