]> sigrok.org Git - sigrok-util.git/commitdiff
macosx: Refine pulseview executable invocation in wrapper script.
authorGerhard Sittig <redacted>
Thu, 17 Aug 2017 19:11:49 +0000 (21:11 +0200)
committerUwe Hermann <redacted>
Thu, 17 Aug 2017 21:59:08 +0000 (23:59 +0200)
Cope with whitespace in e.g. pathnames that get passed to the script and
then forwarded to the executable. Prefix the invocation of the external
binary with 'exec' as there is no need to return to the script after the
last line finished executing.

cross-compile/macosx/contrib/pulseview

index dfa091de085e164330ba3cd8742e4519940c5ff2..cad475134b0ed4cb467ef2d83bbd2f166b3e3d83 100755 (executable)
@@ -23,4 +23,4 @@ cd "$DIR"
 export PYTHONHOME="../Frameworks/Python.framework/Versions/3.6"
 export SIGROK_FIRMWARE_DIR="../share/sigrok-firmware"
 export SIGROKDECODE_DIR="../share/libsigrokdecode/decoders"
-./pulseview.real $*
+exec ./pulseview.real "$@"