Commit 61b79815 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Add extra -u option in snf-image-update-helper

This can be used to overwrite the default HELPER_URL
parent f7f72578
......@@ -35,6 +35,9 @@ install it under $IMAGE_DIR.
OPTIONS:
-h Print this message
-u URL
Download URL to use for the helper image instead of $HELPER_URL
-y Assume Yes to all queries and do not prompt
EOF
......@@ -42,10 +45,12 @@ EOF
exit "$rc"
}
while getopts "hy" opt; do
while getopts "hu:y" opt; do
case $opt in
h) usage 0
;;
u) HELPER_URL="$OPTARG"
;;
y) NO_PROMPT="yes"
;;
?) log_error "User \`-h' for help"; exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment