diff --git a/功能/转换工具/json转xml.sh b/功能/转换工具/json转xml.sh index d42e74a..035e665 100755 --- a/功能/转换工具/json转xml.sh +++ b/功能/转换工具/json转xml.sh @@ -2,6 +2,7 @@ # FontMM # 将 json 转换为 xml # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="json2xml" + # local mode="json2xml" local input="$2" local output="$1" diff --git a/功能/转换工具/xml转json(将丢失注释).sh b/功能/转换工具/xml转json(将丢失注释).sh index aaef78f..629fae9 100755 --- a/功能/转换工具/xml转json(将丢失注释).sh +++ b/功能/转换工具/xml转json(将丢失注释).sh @@ -2,6 +2,7 @@ # FontMM # 将 fonts.xml 转换为 json # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="xml2json" + # local mode="xml2json" local input="$1" local output="$2" diff --git a/功能/转换工具/xml转yaml.sh b/功能/转换工具/xml转yaml.sh index 701f14c..a660317 100755 --- a/功能/转换工具/xml转yaml.sh +++ b/功能/转换工具/xml转yaml.sh @@ -2,6 +2,7 @@ # FontMM # 将 fonts.xml 转换为 yaml # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="xml2yaml" + # local mode="xml2yaml" local input="$1" local output="$2" diff --git a/功能/转换工具/yaml转xml.sh b/功能/转换工具/yaml转xml.sh index e1fd131..9eb3922 100755 --- a/功能/转换工具/yaml转xml.sh +++ b/功能/转换工具/yaml转xml.sh @@ -2,6 +2,7 @@ # FontMM # 将 yaml 转换为 xml # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="yaml2xml" + # local mode="yaml2xml" local input="$2" local output="$1"