@@ -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
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(-)