diff mbox series

[2/2] toolchain-shar-extract: be verbose earlier

Message ID 20261202170955.3531547-2-ross.burton@arm.com
State New
Headers show
Series [1/2] toolchain-shar-extract: remove redundant xz check | expand

Commit Message

Ross Burton Dec. 2, 2026, 5:09 p.m. UTC
Move the 'set -x' call to immediately after the argument parsing, so as
much as possible is ran verbosely.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/files/toolchain-shar-extract.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index c701e188fb4..cfc6cb96f65 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -109,6 +109,10 @@  while getopts ":yd:npDRSl" OPT; do
 	esac
 done
 
+if [ $verbose = 1 ] ; then
+	set -x
+fi
+
 payload_offset=$(($(grep -na -m1 "^MARKER:$" "$0"|cut -d':' -f1) + 1))
 if [ "$listcontents" = "1" ] ; then
     if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then
@@ -128,10 +132,6 @@  titlestr="@SDK_TITLE@ installer version @SDK_VERSION@"
 printf "%s\n" "$titlestr"
 printf "%${#titlestr}s\n" | tr " " "="
 
-if [ $verbose = 1 ] ; then
-	set -x
-fi
-
 @SDK_PRE_INSTALL_COMMAND@
 
 # SDK_EXTENSIBLE is exposed from the SDK_PRE_INSTALL_COMMAND above