aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx/utility-launcher
blob: bff75b2da81e2e24d3f4d64a44a9f9106c4b8497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# $Id$
#
# Wireshark CLI utility launcher

if [ -z "$WIRESHARK_APP_DIR" ] ; then
	WIRESHARK_APP_DIR="/Applications/Wireshark.app"
fi

if [ ! -d "$WIRESHARK_APP_DIR" ] ; then
	echo "Wireshark doesn't appear to be located at $WIRESHARK_APP_DIR."
	echo "Please set WIRESHARK_APP_DIR to its proper location and try again."
	exit 1
fi

APPNAME=`basename $0`
exec "$WIRESHARK_APP_DIR/Contents/Resources/bin/$APPNAME" "$@"