Skip to content

Commit a458015

Browse files
committed
delete in uninstall except for repositories directory
1 parent bca81a3 commit a458015

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/uninstall.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall.sh | sudo sh
44

55

6-
WEBIDE_ROOT="/usr/share/adafruit"
6+
WEBIDE_ROOT="/usr/share/adafruit/webide"
77
WEBIDE_HOME="/home/webide"
88
NODE_PATH=""
99

@@ -31,11 +31,13 @@ systemctl daemon-reload
3131
systemctl reset-failed
3232

3333
echo "**** Removing the WebIDE Folder ****"
34-
rm -rf "$WEBIDE_ROOT"
34+
shopt -s extglob
35+
rm -rf "$WEBIDE_ROOT"/!(repositories)
3536
echo "**** Removing webide user ****"
3637
userdel -r webide
3738

3839
echo "**** The Adafruit WebIDE is now uninstalled! ****"
40+
echo "**** Your code and repositories remain at $WEBIDE_ROOT ****"
3941
echo "**** During the installation process, there were a few ****"
4042
echo "**** libraries installed that we did not uninstall as ****"
4143
echo "**** we're not able to determine if other applications are dependent ****"

0 commit comments

Comments
 (0)