Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
61b79815
Commit
61b79815
authored
Sep 02, 2013
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-image-host/snf-image-update-helper.in
View file @
61b79815
...
...
@@ -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
"h
u:
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment