From 34025c91db5b942b21f65f1a9918c7f8a3da75d1 Mon Sep 17 00:00:00 2001 From: dang-zhongkai Date: Tue, 23 Nov 2021 14:43:24 +0800 Subject: [PATCH] fix build csec issue Signed-off-by: dang-zhongkai --- check_build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check_build.sh b/check_build.sh index 55a55b9..602ed41 100755 --- a/check_build.sh +++ b/check_build.sh @@ -19,9 +19,9 @@ function readfile () { for file in $1/* do - if [ -d $file ];then + if [ -d "$file" ];then readfile $file $2 $3 - elif [ $file -nt $2 ]; then + elif [ "$file" -nt "$2" ]; then echo $file is update touch $3; return @@ -32,9 +32,9 @@ function readfile () echo $1 for check kernel dir echo $2 for output image echo $3 for timestamp -if [ -e $2 ]; then +if [ -e "$2" ]; then readfile $1 $2 $3 - if [ $3 -nt $2 ]; then + if [ "$3" -nt "$2" ]; then echo "need update $2" rm -rf $2; fi -- Gitee