Make sure there is always a clean self-update
This commit is contained in:
parent
166d4fd6d4
commit
cbba16a1e9
4
manager
4
manager
|
@ -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
|
||||
|
|
Reference in New Issue