diff --git a/files/git-backup/git-backup.sh b/files/git-backup/git-backup.sh index a17d5c8..e0d1301 100755 --- a/files/git-backup/git-backup.sh +++ b/files/git-backup/git-backup.sh @@ -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