Fix: Installer - None selected profile

This commit is contained in:
alstjr7375 2021-06-17 11:15:33 +09:00
parent 2842b274a8
commit 3843b68ca0

View file

@ -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
}