Fixed option bug

This commit is contained in:
Mishalabdullah
2024-05-29 15:09:01 +05:30
parent 23e5b044e9
commit aa68f44efc

View File

@@ -345,9 +345,18 @@ read -p "Enter your choice: " choice
boldGreen="\e[1m\e[92m" boldGreen="\e[1m\e[92m"
reset="\e[0m" reset="\e[0m"
if [[ $choice -eq 3 ]]; then if [[ $choice -eq 3 ]]; then
echo "Installing all components on the local machine"
install_package
install_registry
install_gateway
install_bap_protocol_server
install_bpp_protocol_server_with_sandbox
elif [[ $choice -eq 4 ]]; then
echo "Determining the platforms available based on the initial choice" echo "Determining the platforms available based on the initial choice"
mergingNetworks
else
# Determine the platforms available based on the initial choice
platforms=("Gateway" "BAP" "BPP") platforms=("Gateway" "BAP" "BPP")
[ "$choice" -eq 2 ] && platforms=("Registry" "${platforms[@]}") # Add Registry for new network setups [ "$choice" -eq 2 ] && platforms=("Registry" "${platforms[@]}") # Add Registry for new network setups
@@ -367,12 +376,11 @@ if [[ $choice -eq 3 ]]; then
echo "Invalid option. Please restart the script and select a valid option." echo "Invalid option. Please restart the script and select a valid option."
exit 1 exit 1
fi fi
elif [[ $choice -eq 4 ]]; then
echo "Determining the platforms available based on the initial choice"
mergingNetworks
fi fi
echo "Process complete. Thank you for using Beckn-ONIX!" echo "Process complete. Thank you for using Beckn-ONIX!"
echo "Process complete. Thank you for using Beckn-ONIX!"