From c688cdb90bd79eb09d0e37ec425e9ce56b32e647 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Tue, 20 Jul 2021 14:12:48 +0900 Subject: [PATCH] Fix: Installer - Update section to array --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 38680de..0807da5 100755 --- a/install.sh +++ b/install.sh @@ -687,7 +687,7 @@ update_profile() { check_git for profileDir in "${firefoxProfileDirPaths[@]}"; do local LEPTONINFOPATH="${profileDir}/${LEPTONINFOFILE}" - local sections=$(get_ini_section "${LEPTONINFOPATH}") + local sections=($(get_ini_section "${LEPTONINFOPATH}")) if [ ! -z "${sections}" ]; then for section in "${sections[@]}"; do local Type=$( get_ini_value "${LEPTONINFOPATH}" "Type" "${section}") @@ -715,7 +715,7 @@ update_profile() { git --git-dir "${LEPTONGITPATH}" checkout "tags/${Ver}" fi else - lepton_error_message "Unable to find update type, ${Type}" + lepton_error_message "Unable to find update type, ${Type} at ${section}" fi done fi