diff --git a/script.sh b/script.sh index 11fa1f4..9f48b99 100755 --- a/script.sh +++ b/script.sh @@ -93,6 +93,16 @@ if [ "$debug_output" = true ]; then fi done < $HOME/klipper-backup/.env end_debug_line + + if [[ $git_host == "github.com" ]]; then + begin_debug_line + if curl -fsS "https://api.github.com/repos/${github_username}/${github_repository}" >/dev/null; then + echo "The GitHub repo ${github_username}/${github_repository} exists (public)" + else + echo "Error: no GitHub repo ${github_username}/${github_repository} found (maybe private)" + fi + end_debug_line + fi fi # Check if backup folder exists, create one if it does not