updated git_foreach_repo.sh

pull/4/head
Hari Sekhon 1 year ago
parent 114610c81f
commit d01bf222c5

@ -118,6 +118,8 @@ execute_repo(){
cmd=("${cmd[@]//\{owner\}/$owner}")
cmd=("${cmd[@]//\{repo\}/$repo}")
cmd=("${cmd[@]//\{dir\}/$repo_dir}")
# need eval'ing to able to inline quoted script
# shellcheck disable=SC2294
eval "${cmd[@]}"
if [[ "${cmd[*]}" =~ github_.*.sh|gitlab_.*.sh|bitbucket_*.sh ]]; then
# throttle hitting the GitHub / GitLab / Bitbucket APIs too often as they may error out

Loading…
Cancel
Save