From f7d4096480b37787a33c60baa4d0415ab5b200ba Mon Sep 17 00:00:00 2001 From: Nikolas Zimmermann Date: Fri, 27 Sep 2024 23:17:43 +0200 Subject: [PATCH] wkdev-update: Make --verbose the default mode. Fixes issue #55. Remove the --verbose option, and make it default. This avoids surprises, when the script appears to be stuck, when it's e.g. pulling a new image from ghcr.io -- always show the podman pull output instead. --- scripts/host-only/wkdev-update | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/host-only/wkdev-update b/scripts/host-only/wkdev-update index f1c9547..0f2c306 100755 --- a/scripts/host-only/wkdev-update +++ b/scripts/host-only/wkdev-update @@ -11,7 +11,6 @@ source "${WKDEV_SDK}/utilities/podman.sh" argsparse_use_option debug "Enable debug logging for podman (useful to debug container issues)" argsparse_use_option trace "Enable 'xtrace' mode for this script" -argsparse_use_option =verbose "Increase verbosity of this script" argsparse_usage_description="$(cat <> @@ -35,7 +34,7 @@ try_update_sdk_repository() { if [ "$(git rev-parse --abbrev-ref HEAD)" = "main" ] && [ -z "$(git status --untracked-files=no --porcelain)" ]; then echo "-> Updating Git repository 'wkdev-sdk' located in \${WKDEV_SDK}..." - run_command_silent_unless_verbose git pull --rebase || _abort_ "Cannot update wkdev-sdk repository" + run_command git pull --rebase || _abort_ "Cannot update wkdev-sdk repository" else echo "-> Not updating Git repository 'wkdev-sdk' located in \${WKDEV_SDK} - there are local modifications!" fi @@ -148,7 +147,7 @@ update_image() { echo "" echo "-> Updating image '${image_name}'..." - run_podman_silent_unless_verbose pull "${image_name}" || _abort_ "Cannot update image '${image_name}'" + run_podman pull "${image_name}" || _abort_ "Cannot update image '${image_name}'" } # Main functionality