![Stig Bjørlykke](/assets/img/avatar_default.png)
Make the OSX application launch when having space in the path. svn path=/trunk/; revision=26612
20 lines
431 B
Bash
Executable file
20 lines
431 B
Bash
Executable file
#!/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" "$@"
|
|
|