aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kalles <alexakis1997@gmail.com>2017-12-20 15:32:07 +0200
committerSebastian "Oyster" T <oysterized@gmail.com>2017-12-20 18:02:11 +0100
commit887327a79385584b39f978285184edd2f3b6687a (patch)
treea8c1c2243fefa24c4cd2a138bdd875e3d7d67525
parent467f0a402996982cfe27a31eb77e737e5ab1dbf7 (diff)
Uninstall: Proper clean of patches
Doesn't need to reset the commit, just undo the changes with "checkout -- ."
-rw-r--r--patches/uninstall.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/patches/uninstall.sh b/patches/uninstall.sh
index 53264d4..4410174 100644
--- a/patches/uninstall.sh
+++ b/patches/uninstall.sh
@@ -10,10 +10,9 @@ for dir in $dirs ; do
cd $rootdirectory
cd $dir
echo -e "\n Cleaning $dir patches...\n"
- git reset --hard && git clean -df
+ git checkout -- . && git clean -df
done
# -----------------------------------
echo -e "Done !\n"
cd $rootdirectory
-