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
f7f72578
Commit
f7f72578
authored
Sep 02, 2013
by
Nikos Skalkotos
Browse files
Beautify the messages of snf-image-update-helper
parent
6854000a
Changes
1
Show whitespace changes
Inline
Side-by-side
snf-image-host/snf-image-update-helper.in
View file @
f7f72578
...
...
@@ -54,7 +54,9 @@ while getopts "hy" opt; do
done
cat
>
&1
<<
EOF
This program will overwrite the following files if present:
$(
basename
$0
)
will download a suitable snf-image-helper image and will install
it under
$IMAGE_DIR
. The following files will be overwritten if present:
\`
$HELPER_DIR
/initrd'
\`
$HELPER_DIR
/kernel'
\`
$HELPER_DIR
/initrd-xen'
...
...
@@ -84,15 +86,19 @@ add_cleanup rmdir "$IMAGE_DIR"
cd
"
$IMAGE_DIR
"
IMAGE
=
$(
basename
"
$HELPER_URL
"
)
echo
"Downloading helper image:
\`
$IMAGE
'..."
>
&2
echo
>
&2
echo
"Downloading helper image from
$HELPER_URL
..."
>
&2
$CURL
-O
-L
-f
"
$HELPER_URL
"
add_cleanup
rm
-f
"
$IMAGE_DIR
/
$IMAGE
"
cd
"
$HELPER_DIR
"
echo
"Extracting helper image:"
echo
>
&2
echo
"Extracting helper image under
\`
$HELPER_DIR
':"
>
&2
tar
-xvf
"
$IMAGE_DIR
/
$IMAGE
"
echo
>
&2
echo
"Helper image was installed successfully!"
>
&2
exit
0
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
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