change from gensub to gsub
gensub is gawk only, not in mawk
This commit is contained in:
parent
39eae43321
commit
74243de183
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ logdebug "update submodules"
|
||||||
git config --file=.gitmodules -l | \
|
git config --file=.gitmodules -l | \
|
||||||
grep url= | \
|
grep url= | \
|
||||||
awk -F "=" -v srv="${MYSHElLCONFIG_GIT_SUBMODULE_SERVER-${MYSHElLCONFIG_GIT_SUBMODULE_SERVER_DEFAULT}}" \
|
awk -F "=" -v srv="${MYSHElLCONFIG_GIT_SUBMODULE_SERVER-${MYSHElLCONFIG_GIT_SUBMODULE_SERVER_DEFAULT}}" \
|
||||||
'{print $1" "gensub(/^.*github.com/,srv,$2)}' | \
|
'{gsub(/^.*github.com/,srv,$2); print $1" "$2}' | \
|
||||||
while read a b; do
|
while read a b; do
|
||||||
logdebug "git config --file=.gitmodules ${a} ${b}"
|
logdebug "git config --file=.gitmodules ${a} ${b}"
|
||||||
git config --file=.gitmodules "${a}" "${b}"
|
git config --file=.gitmodules "${a}" "${b}"
|
||||||
|
|
Loading…
Reference in a new issue