mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-11-05 19:48:15 +08:00
feat(riot): *.batch
This commit is contained in:
@@ -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|"" )
|
||||
|
||||
Reference in New Issue
Block a user