aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-01-04 00:07:46 -0800
committerGuy Harris <guy@alum.mit.edu>2017-01-04 08:10:12 +0000
commit880580c252f722c993585670ce003dd8a1f95757 (patch)
tree95ca87370893ee7d7a2a3eb9665081773f78a16f /packaging
parent3fae1366d1041c3591a919ce91aed27f983715a9 (diff)
Create the Content/Resources/bin directory if necessary.
Bug: 13270 Change-Id: Idc4223a24d6d2037d13a85331ce63e5a24168d3a Reviewed-on: https://code.wireshark.org/review/19533 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/Scripts/wireshark-postinstall.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/macosx/Scripts/wireshark-postinstall.sh b/packaging/macosx/Scripts/wireshark-postinstall.sh
index 7982fea..2e1d616 100755
--- a/packaging/macosx/Scripts/wireshark-postinstall.sh
+++ b/packaging/macosx/Scripts/wireshark-postinstall.sh
@@ -24,6 +24,10 @@ BIN_PATH="$2/Wireshark.app/Contents/Resources/bin"
# For some reason, packagemaker isn't including Contents/Resources/bin
# in the app bundle, so let's just construct it ourselves.
#
+if [ ! -d "$BIN_PATH" ]
+then
+ mkdir -m u=rwx,g=rx,o=rx "$BIN_PATH"
+fi
for i in capinfos dftest dumpcap editcap mergecap randpkt rawshark \
tshark text2pcap
do