Show possible variants
This commit is contained in:
parent
16123cb9d7
commit
b507d20f72
|
@ -288,7 +288,8 @@ function parse_args {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(is_valid_variant) == "0" ]]; then
|
if [[ $(is_valid_variant) == "0" ]]; then
|
||||||
echo $"'$SYSTEM_TYPE' is an unrecognised ${PROJECT_NAME} variant."
|
echo $"'$SYSTEM_TYPE' is an unrecognised ${PROJECT_NAME} variant. Possible variants are:"
|
||||||
|
show_available_variants
|
||||||
exit 367245
|
exit 367245
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,8 @@ function show_help {
|
||||||
echo $' --ns2 Second DNS nameserver'
|
echo $' --ns2 Second DNS nameserver'
|
||||||
echo $' --repo Debian repository'
|
echo $' --repo Debian repository'
|
||||||
echo ''
|
echo ''
|
||||||
|
echo 'Possible variants are:'
|
||||||
|
show_available_variants
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,6 +124,16 @@ function is_valid_variant {
|
||||||
return "0"
|
return "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function show_available_variants {
|
||||||
|
available_variants_list=()
|
||||||
|
available_system_variants
|
||||||
|
|
||||||
|
for variant_str in "${available_variants_list[@]}"
|
||||||
|
do
|
||||||
|
echo " $variant_str"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# mark a given app as having been removed so that it doesn't get reinstalled on updates
|
# mark a given app as having been removed so that it doesn't get reinstalled on updates
|
||||||
function remove_app {
|
function remove_app {
|
||||||
app_name=$1
|
app_name=$1
|
||||||
|
|
Loading…
Reference in New Issue