Update git-backup.sh

This commit is contained in:
Cyril 2024-05-09 00:28:43 +02:00
parent 34fce88095
commit 5a2bdba98a

View file

@ -178,6 +178,16 @@ elif [ "$INSTALL" = 1 ]; then
echo " Use another branch name or clean your repo and restart Git Backup installation.${white}"
echo
exit 0
elif echo "$push_repo" | grep -q "remote: error: GH007"; then
echo
rm -rf /usr/data/printer_data/config/.git
killall -q inotifywait >/dev/null 2>&1
/opt/bin/opkg --autoremove remove inotifywait >/dev/null 2>&1
echo "${white}${darkred} ✗ Your push would publish a private email address!"
echo " You can make your email public or disable this protection by visiting:${white}"
echo " http://github.com/settings/emails${white}"
echo
exit 0
elif echo "$push_repo" | grep -q "error: failed to push some refs to"; then
echo
rm -rf /usr/data/printer_data/config/.git