feat: 优化脚本,删除无用信息

This commit is contained in:
2025-04-09 17:32:03 +08:00
parent 5117f79d44
commit e7e0ebba82
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ ENV LANG=en_US.UTF-8 \
# 选择软件包源,安装常用软件包,配置locale和时区,并清理缓存
RUN set -eux; \
# 选择软件包源,以加速后续软件包安装
select_source ${APT_SOURCE}; \
/usr/sbin/select_source ${APT_SOURCE}; \
# 使用 install_pkg 脚本安装软件包
/usr/sbin/install_pkg gosu dumb-init curl locales; \
\
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
# Ver: 1.1 by Endial Fang (endial@126.com)
# Ver: 1.2 by Endial Fang (endial@126.com)
#
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
-2
View File
@@ -29,8 +29,6 @@ if [ $# -lt 1 ]; then
exit 1
fi
# 解析命令行参数
UPDATE=true
while [[ $# -gt 0 ]]; do
case "$1" in
-h|--help)