修改select_source调用的默认参数

This commit is contained in:
2020-09-03 16:47:00 +08:00
parent 55581737da
commit e0663fc7b6
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -35,13 +35,14 @@ clearclean: clean
@echo "Clean all images for current application..."
@docker images | grep "$(debian_name)" | awk '{print $$3}' | xargs docker rmi -f
@docker images | grep "$(alpine_name)" | awk '{print $$3}' | xargs docker rmi -f
tag:
@echo "Add tag: $(local_registory)/$(alpine_name):latest"
@docker tag $(debian_name) $(local_registory)/$(debian_name)
@echo "Add tag: $(local_registory)/$(alpine_name):latest"
@docker tag $(alpine_name) $(local_registory)/$(alpine_name)
push:
push: tag
@echo "Push: $(local_registory)/$(alpine_name):latest"
@docker push $(local_registory)/$(debian_name)
@echo "Push: $(local_registory)/$(alpine_name):latest"
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
cp /etc/apk/repositories.${apk_source:-default} /etc/apk/repositories
cp /etc/apk/repositories.${1:-default} /etc/apk/repositories
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
cp /etc/apt/sources/sources.list.${apt_source:-default} /etc/apt/sources.list; \
cp /etc/apt/sources/sources.list.${1:-default} /etc/apt/sources.list; \