From cef4f103e04ce80dd3661807a903ff66f865db1a Mon Sep 17 00:00:00 2001 From: XZhouQD Date: Sat, 26 Dec 2020 15:38:07 +0800 Subject: [PATCH] Fix: typo in fix-mirrors-network Signed-off-by: XZhouQD --- bin/fix-mirrors-network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/fix-mirrors-network b/bin/fix-mirrors-network index 192f9b7..764835b 100755 --- a/bin/fix-mirrors-network +++ b/bin/fix-mirrors-network @@ -17,7 +17,7 @@ fix2=( ) fix3=( - "ARG archive-server" + "ARG archive" ) cp ${dockerfile} ${dockerfile}-mirror @@ -37,7 +37,7 @@ do done let max=${#fix3[@]}-1 -for i in $(seq 0 max) +for i in $(seq 0 $max) do sed -i 's#archive-server#${archive}#g' ${dockerfile}-mirror sed -i "/FROM/a${fix3[$i]}" ${dockerfile}-mirror -- Gitee