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 {
|
function selfupdate {
|
||||||
cd ~/bin || exit
|
cd ~/bin || exit
|
||||||
output "info" "Self-updating:"
|
output "info" "Self-updating:"
|
||||||
git clean || git reset --hard origin/master
|
[ -n $(git diff --name-only origin/master | grep manager) ] && {
|
||||||
git pull https://github.com/RXCommunity/Manager master
|
git clean -fd && \
|
||||||
|
git reset --hard HEAD && \
|
||||||
|
git pull https://github.com/RXCommunity/manager master
|
||||||
|
} || {
|
||||||
|
output "info" "Already latest version!"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
## Definitions
|
## Definitions
|
||||||
|
|
Reference in New Issue