Make sure there is always a clean self-update

This commit is contained in:
Alex D. 2018-12-24 17:01:24 +01:00
parent 166d4fd6d4
commit cbba16a1e9
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ function update () {
function selfupdate {
cd ~/bin || exit
output "info" "Self-updating:"
git pull https://github.com/RXCommunity/Manager master || \
output "err" "Could not pull latest version, did you clone the repository?"
git reset --hard origin/master
git pull https://github.com/RXCommunity/Manager master
}
## Definitions