Fix the utility-launcher to look at the name it's run as.

If it's run as "tshark", it should run TShark, not Wireshark.

Bug: 14643
Change-Id: I0d4e6fa64e42b7a2e2d4b89b53db62748b4f288d
Reviewed-on: https://code.wireshark.org/review/27245
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-05-01 21:00:26 -07:00
parent 44537199a2
commit 737270dc8c
1 changed files with 5 additions and 1 deletions

View File

@ -16,4 +16,8 @@ if [ ! -d "$WIRESHARK_APP_DIR" ] ; then
exit 1
fi
exec "$WIRESHARK_APP_DIR/Contents/MacOS/Wireshark" "$@"
APP_NAME=`basename "$0"`
if [ "$APP_NAME" = "wireshark" ] ; then
APP_NAME=Wireshark
fi
exec "$WIRESHARK_APP_DIR/Contents/MacOS/$APP_NAME" "$@"