feat(riot): *.batch

This commit is contained in:
2024-11-12 15:03:56 +08:00
parent 1b32deeea1
commit 7946656a7e
2 changed files with 30 additions and 1 deletions

View File

@@ -224,10 +224,16 @@ router() {
done
IFS=',' read -ra remotes <<< "$1"
for remote in "${remotes[@]}"; do
for ((i=0; i<${#remotes[@]}; i++)); do
remote="${remotes[i]}"
if [[ -z "$remote" ]]; then
continue
fi
local batch_func="${remote}.batch"
if is_function "$batch_func"; then
"$batch_func"
continue
fi
parse_remote "$remote"
case $2 in
ssh|"" )