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