summaryrefslogtreecommitdiff
path: root/scripts/cleanProject.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cleanProject.sh')
-rwxr-xr-xscripts/cleanProject.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/cleanProject.sh b/scripts/cleanProject.sh
index 703788cc..058ef20e 100755
--- a/scripts/cleanProject.sh
+++ b/scripts/cleanProject.sh
@@ -1,12 +1,15 @@
#!/bin/bash
+SCRIPT_DIR=$(dirname "$0")
+BASE_DIR="$SCRIPT_DIR/.."
+
git checkout -- \*
git checkout -- \.\*
-rm -r ./ics-openvpn
-rm -r ./build
-rm -r ./app/build
-rm -r ./go/lib/*
-rm -r ./currentReleases
+rm -r $BASE_DIR/ics-openvpn
+rm -r $BASE_DIR/build
+rm -r $BASE_DIR/app/build
+rm -r $BASE_DIR/go/lib/*
+rm -r $BASE_DIR/currentReleases
git submodule sync --recursive
git submodule update --init --recursive