From f8f0de507565da44020eb2ef70e9c1dcea13d9be Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Wed, 15 Jul 2009 13:44:37 +0000 Subject: [PATCH] fix saving repository change to /root/.sbopkg.conf; thanks to samac for the bug report --- src/usr/sbin/sbopkg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index aa18277..2a52be7 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -922,8 +922,10 @@ select_repository() { break fi if [[ -e $HOME/.sbopkg.conf ]]; then + sed -i '/^REPO_NAME=.*$/d' $HOME/.sbopkg.conf sed -i '/^REPO_BRANCH=.*$/d' $HOME/.sbopkg.conf fi + echo "REPO_NAME=$REPO_NAME" >> $HOME/.sbopkg.conf echo "REPO_BRANCH=$REPO_BRANCH" >> $HOME/.sbopkg.conf break done