summaryrefslogtreecommitdiffstats
path: root/mac/Plumb.app/Contents
diff options
context:
space:
mode:
Diffstat (limited to 'mac/Plumb.app/Contents')
-rwxr-xr-xmac/Plumb.app/Contents/MacOS/plumb6
1 files changed, 5 insertions, 1 deletions
diff --git a/mac/Plumb.app/Contents/MacOS/plumb b/mac/Plumb.app/Contents/MacOS/plumb
index 850ec0e0..b3f15330 100755
--- a/mac/Plumb.app/Contents/MacOS/plumb
+++ b/mac/Plumb.app/Contents/MacOS/plumb
@@ -3,6 +3,10 @@
if [ -e ~/.bashrc ] ; then
. ~/.bashrc
fi
+arch=x86_64
+if arch -arch arm64 date >/dev/null 2>&1; then
+ arch=arm64
+fi
PLAN9=${PLAN9:-/usr/local/plan9}
bin=$PLAN9/bin
@@ -10,5 +14,5 @@ IFS=$'\n'
for file in $($bin/macargv)
do
- $bin/macedit "$file"
+ arch -arch $arch $bin/macedit "$file"
done