Clean, and if it fails then do a hard reset

This commit is contained in:
Alex D. 2018-12-24 17:12:04 +01:00
parent 73f2cf239a
commit bc29bcf125
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ function update () {
function selfupdate {
cd ~/bin || exit
output "info" "Self-updating:"
git reset --hard origin/master
git clean || git reset --hard origin/master
git pull https://github.com/RXCommunity/Manager master
chmod +x manager
}