From a1757faf2288578f168a99fe8bc0e2ee4d27aeb0 Mon Sep 17 00:00:00 2001 From: JK Wood Date: Sat, 1 Sep 2018 14:43:54 -0500 Subject: [PATCH] Ensure we only reset for real -current repo --- src/usr/sbin/sbopkg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 6c2e964..886baf4 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -2436,7 +2436,7 @@ current_check_updates() { # This function checks for updates if repository is set to -current. local URL BRANCH REMOTE LOCAL - + eval $(sed 's/^\(.*\)@\(.*\)$/URL=\1; BRANCH=\2/g' <<< $REPO_LINK) cd $REPO_DIR @@ -2459,9 +2459,11 @@ git_command() { CWD=$(pwd) # If -CURRENT, handle correctly - if [[ $REPO_BRANCH == "current" ]]; then - current_check_updates - fi + if [[ $REPO_NAME == "SBo-git" ]]; then + if [[ $REPO_BRANCH == "current" ]]; then + current_check_updates + fi + fi # Create the repository if needed if [[ ! -d $REPO_DIR/.git ]]; then mkdir -p $REPO_DIR