From 5a2bdba98ac8a36252ae2f4caf4044267e31b92c Mon Sep 17 00:00:00 2001 From: Cyril Date: Thu, 9 May 2024 00:28:43 +0200 Subject: [PATCH] Update git-backup.sh --- files/git-backup/git-backup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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