From 3843b68ca045b1ebc918d0794d2cfa1e974e85ff Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Thu, 17 Jun 2021 11:15:33 +0900 Subject: [PATCH] Fix: Installer - None selected profile --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cbe85cb..c185bd5 100755 --- a/install.sh +++ b/install.sh @@ -280,7 +280,12 @@ select_profile() { done firefoxProfilePaths=("${targetPaths[@]}") - lepton_ok_message "Multi selected profiles" + foundCount="${#firefoxProfilePaths[@]}" + if [ "${foundCount}" -eq 0 ]; then + lepton_error_message "Please select profiles" + else + lepton_ok_message "Multi selected profiles" + fi fi fi }