From 25b305a8fd17cb4b4289c344b2102c3b6df90675 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 11 May 2024 23:08:03 -0300 Subject: [PATCH] Remove unused var (${remote}) --- libexec/sourcezap/sourcezap-setbranch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libexec/sourcezap/sourcezap-setbranch b/libexec/sourcezap/sourcezap-setbranch index 15addb8..63c7f0f 100644 --- a/libexec/sourcezap/sourcezap-setbranch +++ b/libexec/sourcezap/sourcezap-setbranch @@ -9,7 +9,6 @@ git="${localbase}"/bin/git mode="u=rwX,g=rX,o=" gitdir="$1" branch="$2" -remote="origin" ## # functions @@ -33,11 +32,10 @@ if [ ! -e "${gitdir}/.git" ]; then exit 1 fi -printf "Set new branch: %s\n" "${branch}" set -x cd "${gitdir}" gitexec "fetch origin" gitexec "checkout ${branch}" || gitexec "checkout -t origin/${branch}" set +x -printf "New branch: %s\n" "${branch}" +printf "[-] New branch: %s\n" "${branch}"