Reset to head and force clean
This commit is contained in:
parent
24758e5e8e
commit
b0bcb6d074
9
manager
9
manager
@ -191,8 +191,13 @@ function update () {
|
||||
function selfupdate {
|
||||
cd ~/bin || exit
|
||||
output "info" "Self-updating:"
|
||||
git clean || git reset --hard origin/master
|
||||
git pull https://github.com/RXCommunity/Manager master
|
||||
[ -n $(git diff --name-only origin/master | grep manager) ] && {
|
||||
git clean -fd && \
|
||||
git reset --hard HEAD && \
|
||||
git pull https://github.com/RXCommunity/manager master
|
||||
} || {
|
||||
output "info" "Already latest version!"
|
||||
}
|
||||
}
|
||||
|
||||
## Definitions
|
||||
|
Reference in New Issue
Block a user