瀏覽代碼

Update opkginstall.patch

kiddin9 4 年之前
父節點
當前提交
1ab36ebe52
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      devices/common/patches/opkginstall.patch

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

@@ -156,7 +156,7 @@
  				code=$?
  				code=$?
 -				stdout=$(cat /tmp/opkg.out)
 -				stdout=$(cat /tmp/opkg.out)
 +				if [[ $@ == luci-app-* && "$(opkg list | grep luci-i18n-"$(echo $@ | cut -d - -f 3-)"-zh-cn)" ]]; then
 +				if [[ $@ == luci-app-* && "$(opkg list | grep luci-i18n-"$(echo $@ | cut -d - -f 3-)"-zh-cn)" ]]; then
-+					$opkg $action luci-i18n-"$(echo $@ | cut -d - -f 3-4)"-zh-cn </dev/null >>/tmp/opkg.out 2>/dev/null
++					$opkg $action luci-i18n-"$(echo $@ | cut -d - -f 3-)"-zh-cn </dev/null >>/tmp/opkg.out 2>/dev/null
 +				fi
 +				fi
 +				case "$action" in
 +				case "$action" in
 +					install|upgrade)
 +					install|upgrade)