fix slashes
This commit is contained in:
parent
41b520aba2
commit
7768d0616a
1 changed files with 2 additions and 1 deletions
|
@ -85,10 +85,11 @@ if ${MYSHELLCONFIG_GIT_SUBMODULES_UPDATE-${MYSHELLCONFIG_GIT_SUBMODULES_UPDATE_D
|
||||||
logdebug "update submodules"
|
logdebug "update submodules"
|
||||||
rc=0
|
rc=0
|
||||||
srv="${MYSHELLCONFIG_GIT_SUBMODULES_SERVER-${MYSHELLCONFIG_GIT_SUBMODULES_SERVER_DEFAULT}}"
|
srv="${MYSHELLCONFIG_GIT_SUBMODULES_SERVER-${MYSHELLCONFIG_GIT_SUBMODULES_SERVER_DEFAULT}}"
|
||||||
|
logwarn "srv $srv"
|
||||||
$SGIT config --file=.gitmodules -l | \
|
$SGIT config --file=.gitmodules -l | \
|
||||||
grep url= | \
|
grep url= | \
|
||||||
awk -F "=" -v srv="${srv%/}${srv:+/}" \
|
awk -F "=" -v srv="${srv%/}${srv:+/}" \
|
||||||
'{gsub(/^.*github.com/,srv,$2); print $1" "$2}' | \
|
'{gsub(/^.*github.com\//,srv,$2); print $1" "$2}' | \
|
||||||
while read a b; do
|
while read a b; do
|
||||||
logdebug "$SGIT config --file=.gitmodules ${a} ${b}"
|
logdebug "$SGIT config --file=.gitmodules ${a} ${b}"
|
||||||
$SGIT config --file=.gitmodules "${a}" "${b}"
|
$SGIT config --file=.gitmodules "${a}" "${b}"
|
||||||
|
|
Loading…
Reference in a new issue