feat: 删除脚本中的命令回显

This commit is contained in:
2025-04-21 11:51:44 +08:00
parent 5cdb679fba
commit 4ca9047229
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/bash
# Ver: 1.2 by Endial Fang (endial@126.com)
# Ver: 1.3 by Endial Fang (endial@126.com)
#
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
set -eu
# 定义错误处理函数,添加错误位置信息
error() {
+3 -3
View File
@@ -1,8 +1,8 @@
#!/bin/bash
# Ver: 1.2 by Endial Fang (endial@126.com)
#!/bin/sh
# Ver: 1.3 by Endial Fang (endial@126.com)
#
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
set -eu
# 检查用户权限
if [ "$EUID" -ne 0 ]; then
+3 -3
View File
@@ -1,9 +1,9 @@
#!/bin/bash
# Ver: 1.2 by Endial Fang (endial@126.com)
#!/bin/sh
# Ver: 1.3 by Endial Fang (endial@126.com)
#
# 此脚本用于根据传入的参数选择对应的 apk 源配置文件并复制到指定目录
# shell 执行参数,分别为 -e(命令执行错误则退出脚本) -u(变量未定义则报错) -x(打印实际待执行的命令行)
set -eux
set -eu
# 检查是否有足够的权限
if [ "$EUID" -ne 0 ]; then