From 66cc83a975ae5b03d4b4b97c9790c8bc09ad04b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20W=C3=BCrthner?= <5859228+crysxd@users.noreply.github.com> Date: Sun, 31 Mar 2024 17:04:30 +0200 Subject: [PATCH] Remove duplicate clone function --- scripts/octoapp.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/octoapp.sh b/scripts/octoapp.sh index 5546502..8659409 100644 --- a/scripts/octoapp.sh +++ b/scripts/octoapp.sh @@ -159,20 +159,6 @@ function octoapp_setup_dialog() { fi # (( allowed_octoapp_count > 0 )) } -function clone_octoapp() { - local repo=${1} - - status_msg "Cloning OctoApp..." - ### force remove existing repos - [[ -d "${OCTOAPP_DIR}" ]] && rm -rf "${OCTOAPP_DIR}" - - cd "${HOME}" || exit 1 - if ! git clone "${repo}" "${OCTOAPP_DIR}"; then - print_error "Cloning OctoApp from\n ${repo}\n failed!" - exit 1 - fi -} - function octoapp_install() { "${OCTOAPP_DIR}/install.sh" "$@" }