Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 722ec0c

Browse files
Add macos installer
1 parent b246149 commit 722ec0c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# required root privileges
4+
if [ "$EUID" -ne 0 ]
5+
then echo "Please run as root with sudo"
6+
exit
7+
fi
8+
9+
rm /usr/local/bin/cortex
10+
11+
echo "Do you want to delete the 'cortex' data folder for all users? (yes/no)"
12+
read -r answer
13+
14+
case "$answer" in
15+
[yY][eE][sS]|[yY])
16+
echo "Deleting 'cortex' data folders..."
17+
for userdir in /Users/*; do
18+
if [ -d "$userdir/cortex" ]; then
19+
echo "Removing $userdir/cortex"
20+
rm -rf "$userdir/cortex" > /dev/null 2>&1
21+
fi
22+
done
23+
;;
24+
[nN][oO]|[nN])
25+
echo "Keeping the 'cortex' data folders."
26+
;;
27+
*)
28+
echo "Invalid response. Please type 'yes' or 'no'."
29+
;;
30+
esac
31+
32+
rm /usr/local/bin/cortex-uninstall.sh

0 commit comments

Comments
 (0)