This repository has been archived on 2019-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
Manager/plugins/selfupdate/main.sh

13 lines
401 B
Bash

if [ -x "$(command -v git)" ]; then
cd "${DIR}" || exit
output info "Self-updating:"
if (git diff --name-only origin/master | grep -q manager); then
git reset --hard HEAD | output info
git pull https://github.com/RXCommunity/manager master | output info
else
output info "Already latest version!"
fi
else
output erro "You do not have GIT installed!"
fi