Clean, and if it fails then do a hard reset
This commit is contained in:
parent
73f2cf239a
commit
bc29bcf125
2
manager
2
manager
|
@ -191,7 +191,7 @@ function update () {
|
||||||
function selfupdate {
|
function selfupdate {
|
||||||
cd ~/bin || exit
|
cd ~/bin || exit
|
||||||
output "info" "Self-updating:"
|
output "info" "Self-updating:"
|
||||||
git reset --hard origin/master
|
git clean || git reset --hard origin/master
|
||||||
git pull https://github.com/RXCommunity/Manager master
|
git pull https://github.com/RXCommunity/Manager master
|
||||||
chmod +x manager
|
chmod +x manager
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue