classes/rootfs_ipk: fix bashism
authorFelix Domke <tmbinc@elitedvb.ne>
Wed, 5 Mar 2008 03:28:41 +0000 (03:28 +0000)
committerFelix Domke <tmbinc@elitedvb.ne>
Wed, 5 Mar 2008 03:28:41 +0000 (03:28 +0000)
classes/rootfs_ipk.bbclass

index 25738e8..fd3c632 100644 (file)
@@ -92,10 +92,10 @@ log_check() {
                        for keyword_die in "Cannot find package" "exit 1" ERR Fail
                        do                              
                                
-                               if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") &>/dev/null
+                               if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") >/dev/null 2>&1
                                then
                                        echo "log_check: There were error messages in the logfile"
-                                       echo -e "log_check: Matched keyword: [$keyword_die]\n"
+                                       printf "log_check: Matched keyword: [$keyword_die]\n"
                                        echo "$lf_txt" | grep -v log_check | grep -i "$keyword_die" -C1
                                        echo ""
                                        do_exit=1