!28 修改build脚本格式问题

Merge pull request !28 from 党钟铠/myfeature
This commit is contained in:
openharmony_ci
2021-11-23 09:15:43 +00:00
committed by Gitee
+4 -4
View File
@@ -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