Skip to content

Commit f1f255a

Browse files
committed
patch install.sh to not error on unbound existing_package_manager
1 parent 935196b commit f1f255a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,14 @@ if [ -f "${existing_install_path:-}" ]; then
304304

305305
case "$("$existing_install_path" --version 2>/dev/null | cut -d. -f1)" in
306306
*0)
307-
if [ "$existing_package_manager" = "homebrew" ]; then
307+
if [ "${existing_package_manager:-}" = "homebrew" ]; then
308308
print_brew_0_x_removal_instructions
309309
else
310310
print_basic_0_x_removal_instructions
311311
fi
312312
;;
313313
*1)
314-
if [ "$existing_package_manager" = "homebrew" ]; then
314+
if [ "${existing_package_manager:-}" = "homebrew" ]; then
315315
print_brew_1_x_removal_instructions
316316
else
317317
print_basic_1_x_removal_instructions

0 commit comments

Comments
 (0)