From 78f0bddf84f2d37f16f247ea77606af1f9c8d5b8 Mon Sep 17 00:00:00 2001 From: modehua Date: Sat, 14 Jan 2023 16:44:56 +0800 Subject: [PATCH] shell --- build.sh | 4 ++-- dpkg.sh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 87a1694..691444d 100755 --- a/build.sh +++ b/build.sh @@ -40,11 +40,11 @@ if [ "$oem" != "hg" ] \ exit 1 fi -if [ ${oem:0-2:2} == "so" ] || [ ${oem:0-2:2} == "sm" ]; +if [ "${oem:0-2:2}" == "so" ] || [ "${oem:0-2:2}" == "sm" ]; then sanelibname="${oem%${oem:0-2:2}*}" echo $sanelibname -elif [ ${oem:0-3:3} == "web" ]; +elif [ "${oem:0-3:3}" == "web" ]; then sanelibname="${oem%${oem:0-3:3}*}" echo $sanelibname diff --git a/dpkg.sh b/dpkg.sh index f1b7218..f887458 100755 --- a/dpkg.sh +++ b/dpkg.sh @@ -20,7 +20,6 @@ elif [ "$1" == "cts" ];then echo "---------------dpkg cts---------------" ./build.sh cts $2 ./build.sh ctsso $2 - ./build.sh ctsweb $2 else echo "---------------dpkg all---------------" ./build.sh hg $2 @@ -34,6 +33,5 @@ echo "---------------dpkg all---------------" ./build.sh hwso $2 ./build.sh cts $2 ./build.sh ctsso $2 - ./build.sh ctsweb $2 fi