Skip to content
Snippets Groups Projects
Commit b507d20f authored by Bob Mottram's avatar Bob Mottram
Browse files

Show possible variants

parent 16123cb9
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,8 @@ function parse_args {
fi
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
fi
}
......
......@@ -66,6 +66,8 @@ function show_help {
echo $' --ns2 Second DNS nameserver'
echo $' --repo Debian repository'
echo ''
echo 'Possible variants are:'
show_available_variants
exit 0
}
......
......@@ -124,6 +124,16 @@ function is_valid_variant {
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
function remove_app {
app_name=$1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment