-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.command
More file actions
executable file
·36 lines (30 loc) · 1.11 KB
/
Copy pathinstall.command
File metadata and controls
executable file
·36 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#
# EFIS Data Manager — double-clickable installer.
#
# Double-click this file in Finder to install. It opens Terminal, runs the
# installer, and leaves the window open so you can read the result.
#
# (This is just a friendly wrapper around install.sh.)
# Resolve the folder this file lives in (Finder runs it from "/").
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$HERE"
# Remove the macOS "downloaded from the internet" quarantine flag on the
# installer files so they run without extra Gatekeeper prompts. Best-effort.
xattr -d com.apple.quarantine "$HERE/install.sh" 2>/dev/null || true
xattr -dr com.apple.quarantine "$HERE" 2>/dev/null || true
echo ""
echo "Starting the EFIS Data Manager installer..."
echo ""
bash "$HERE/install.sh"
status=$?
echo ""
if [ "$status" -eq 0 ]; then
echo "All done. You can close this window."
else
echo "The installer stopped with an error (see the message above)."
echo "You can close this window, fix the issue, and run it again."
fi
echo ""
# Keep the Terminal window open so the user can read the output.
read -r -p "Press Return to close..." _