mirror of
https://github.com/sbopkg/sbopkg
synced 2024-09-19 22:40:19 +03:00
Ensure we only reset for real -current repo
This commit is contained in:
parent
8efdf1a6dd
commit
a1757faf22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user