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
