Drop the prefix from spinner messages

The prefixed spinner messages look odd because neither the download
confirmation prompts nor the hints on how to enter a container have
them. It's better to only prefix the debug and error messages so as to
disambiguate their origins.

https://github.com/debarshiray/toolbox/pull/164
This commit is contained in:
Debarshi Ray 2019-05-17 14:06:13 +02:00
parent 8b84b5e460
commit 39806d9269

View file

@ -582,7 +582,7 @@ pull_base_toolbox_image()
echo "$base_toolbox_command: pulling image $base_toolbox_image_full" >&3
if spinner_directory=$(mktemp --directory --tmpdir $spinner_template 2>&3); then
spinner_message="$base_toolbox_command: pulling $base_toolbox_image_full: "
spinner_message="Pulling $base_toolbox_image_full: "
if ! spinner_start "$spinner_directory" "$spinner_message"; then
spinner_directory=""
fi
@ -715,7 +715,7 @@ create()
echo "$base_toolbox_command: trying to create container $toolbox_container" >&3
if spinner_directory=$(mktemp --directory --tmpdir $spinner_template 2>&3); then
spinner_message="$base_toolbox_command: creating container $toolbox_container: "
spinner_message="Creating container $toolbox_container: "
if ! spinner_start "$spinner_directory" "$spinner_message"; then
spinner_directory=""
fi