fix saving repository change to /root/.sbopkg.conf; thanks to samac for the bug report

This commit is contained in:
chess.griffin 2009-07-15 13:44:37 +00:00
parent 51ad9966fb
commit f8f0de5075

View File

@ -922,8 +922,10 @@ select_repository() {
break break
fi fi
if [[ -e $HOME/.sbopkg.conf ]]; then if [[ -e $HOME/.sbopkg.conf ]]; then
sed -i '/^REPO_NAME=.*$/d' $HOME/.sbopkg.conf
sed -i '/^REPO_BRANCH=.*$/d' $HOME/.sbopkg.conf sed -i '/^REPO_BRANCH=.*$/d' $HOME/.sbopkg.conf
fi fi
echo "REPO_NAME=$REPO_NAME" >> $HOME/.sbopkg.conf
echo "REPO_BRANCH=$REPO_BRANCH" >> $HOME/.sbopkg.conf echo "REPO_BRANCH=$REPO_BRANCH" >> $HOME/.sbopkg.conf
break break
done done