Skip to content

Commit c0f0f06

Browse files
Update Gooby-update.sh
1 parent 631a002 commit c0f0f06

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

install/misc/Gooby-update.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ CONFIRMATION
88

99
if [[ ${REPLY} =~ ^[Yy]$ ]]; then
1010

11-
sudo rm -r /opt/Gooby
12-
sudo git clone -b master https://github.com/TechPerplexed/Gooby /opt/Gooby
13-
14-
sudo chmod +x -R /opt/Gooby/install
15-
sudo chmod +x -R /opt/Gooby/menus
16-
sudo chmod +x -R /opt/Gooby/scripts/bin
17-
sudo chmod +x -R /opt/Gooby/scripts/cron
18-
sudo rsync -a /opt/Gooby/scripts/bin/gooby /bin
19-
sudo chmod 755 /bin/gooby
11+
sudo rm -r /opt/.Gooby > /dev/null 2>&1
12+
sudo git clone -b master https://github.com/TechPerplexed/Gooby /opt/.Gooby
13+
14+
if [ -d /opt/.Gooby ]; then
15+
sudo rm -r /opt/Gooby
16+
sudo mv /opt/.Gooby /opt/Gooby
17+
sudo chmod +x -R /opt/Gooby/install
18+
sudo chmod +x -R /opt/Gooby/menus
19+
sudo chmod +x -R /opt/Gooby/scripts/bin
20+
sudo chmod +x -R /opt/Gooby/scripts/cron
21+
sudo rsync -a /opt/Gooby/scripts/bin/gooby /bin
22+
sudo chmod 755 /bin/gooby
23+
fi
2024

2125
clear
2226

0 commit comments

Comments
 (0)