소스 검색

Update opkginstall.patch

garypang13 4 년 전
부모
커밋
f867dc5020
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      devices/common/patches/opkginstall.patch

+ 1 - 1
devices/common/patches/opkginstall.patch

@@ -21,7 +21,7 @@
 +				sed -i "/Existing conffile/d" /tmp/opkg.err || true
 +				sed -i "/Couldn't unlink/d" /tmp/opkg.err || true
 +				sed -i "/pkg_hash_/d" /tmp/opkg.err || true
-+				[ "`cat /tmp/opkg.err`" == "Collected errors:" ] && rm -f /tmp/opkg.err || true
++				[[ "`cat /tmp/opkg.err`" =~ "^Collected errors:(\nCollected errors:){0,}$" ]] && rm -f /tmp/opkg.err || true
  				code=$?
  				stdout=$(cat /tmp/opkg.out)
  				stderr=$(cat /tmp/opkg.err)