mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
nit typo code comment
This commit is contained in:
@@ -427,11 +427,11 @@ function _prompt_install_feature() {
|
||||
elif [ "$opt" == "pv_option" ]; then
|
||||
# pv_option has multiple options and is not a normal binary flag [enabled(1)/disabled(0)].
|
||||
# We must evaluate the input flag and its value in this block
|
||||
local opt_value=${!opt:-0} # Default to zero if somehow pv_option is still assigned as to null.
|
||||
local opt_value=${!opt:-0} # Default to zero if somehow pv_option is still unassigned.
|
||||
if [ "$opt_value" == 0 ]; then
|
||||
echo "(Skipped)" # Skip if VPN Provider not selected / assigned
|
||||
echo "(Skipped)" # Skip if VPN Provider not selected / unassigned
|
||||
else
|
||||
# Iterate over the defined VPN providers by pulling the valid providers from the config file
|
||||
# Iterate over the defined VPN Providers by pulling the valid providers from the config file
|
||||
local valid_ids=($(jq -r '.providers[].id' "$webroot_dir/config/vpn-providers.json"))
|
||||
local found=0
|
||||
for id in "${valid_ids[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user