mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
fix saving repository change to /root/.sbopkg.conf; thanks to samac for the bug report
This commit is contained in:
parent
51ad9966fb
commit
f8f0de5075
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user