diff --git a/build.sh b/build.sh index 45bf81a..37efbfb 100644 --- a/build.sh +++ b/build.sh @@ -64,12 +64,12 @@ CrontaskSize=27788951 RestagentSize=29525312 BinWriterDir=${HOME}/bin -if [ ${shell grep VERSION_ID /etc/os-release} = 'VERSION_ID="22.04"' ]; then +if [[ ${shell grep VERSION_ID /etc/os-release} =~ VERSION_ID="22.04" ]]; then DebBuildDir :=${DebBuild2204Dir} DebFEBuildDir :=${DebFEBuild2204Dir} #DebPkgFile :=${PROJECT}-${VERSION}-22.04-${Release).${PLATFORM).deb DebPkgFile :=${PROJECT}-r${VERSION}-${Release}-ub22.deb -elif [ ${shell grep VERSION_ID /etc/os-release} = 'VERSION_ID="18.04"' ]; then +elif [[ ${shell grep VERSION_ID /etc/os-release} =~ VERSION_ID="18.04" ]]; then DebPkgFile :=${PROJECT}-r${VERSION}-${Release}-ub18.deb fi