From d0460bf0d59768e5d5f093b0da9889ae5eeb4a7f Mon Sep 17 00:00:00 2001 From: rleidner Date: Mon, 2 Dec 2024 22:24:45 +0100 Subject: [PATCH] soc_i3: fix syntax --- modules/soc_i3/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/soc_i3/main.sh b/modules/soc_i3/main.sh index 27a2e4723..3c40707ee 100755 --- a/modules/soc_i3/main.sh +++ b/modules/soc_i3/main.sh @@ -75,11 +75,11 @@ prepare_i3DataFolder(){ then sudo mkdir -p $i3Folder f=soc_i3_cp1.json - if [ -f $RAMDISKDIR/$f && !-f $i3Folder/$f ]; then + if [ -f $RAMDISKDIR/$f -a ! -f $i3Folder/$f ]; then cp $RAMDISKDIR/$f $i3Folder fi f=soc_i3_cp2.json - if [ -f $RAMDISKDIR/$f && !-f $i3Folder/$f ]; then + if [ -f $RAMDISKDIR/$f -a ! -f $i3Folder/$f ]; then cp $RAMDISKDIR/$f $i3Folder fi fi