-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup
More file actions
35 lines (25 loc) · 823 Bytes
/
setup
File metadata and controls
35 lines (25 loc) · 823 Bytes
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
#!/bin/bash
UNAME=$(uname)
cgitUrl=https://raw.githubusercontent.com/Dev-x-Team/corgit/main/cgit
successInstall() {
echo "corgit was installed successfully 🤩, type cgit -h"
}
if [ -x "$(command -v curl)" ]; then
if [[ "$UNAME" == Linux || "$UNAME" == "Darwin" ]]; then
cgitLocLD=/usr/local/bin
if [ -x "$(command -v sudo)" ]; then
sudo wget -P $cgitLocLD $cgitUrl
sudo chmod 755 $cgitLocLD/cgit
else
wget -P $cgitLocLD $cgitUrl
chmod 755 $cgitLocLD/cgit
fi
successInstall
elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* ]]; then
wget -P /usr/bin $cgitUrl
successInstall
else
echo "😕, Unidentified system..."
echo "support abdfnx to add corgit to this system"
fi
fi