mirror of
https://github.com/StackExchange/blackbox.git
synced 2025-12-15 19:13:01 +02:00
Fix change_to_vcs_root in issue #105
This commit is contained in:
@@ -305,10 +305,8 @@ function change_to_vcs_root() {
|
|||||||
|
|
||||||
local rbase=${1:-$REPOBASE} # use $1 but if unset use $REPOBASE
|
local rbase=${1:-$REPOBASE} # use $1 but if unset use $REPOBASE
|
||||||
|
|
||||||
if ! is_blackbox_repo "$rbase"; then
|
cd "$rbase"
|
||||||
echo "ERROR: $rbase is not a blackbox Repo"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 is a string pointing to a directory. Outputs a
|
# $1 is a string pointing to a directory. Outputs a
|
||||||
|
|||||||
Reference in New Issue
Block a user