From 9861419c8798ec37c1dc0056ac64a9bf194299dc Mon Sep 17 00:00:00 2001 From: Chuck Date: Sat, 28 Mar 2020 11:19:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 反正系统更新后脚本不会被保留,直接用管道执行就行了。 --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index cc04177..0b6c1e7 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,7 @@ opkg install zstd ``` 然后下载脚本执行 ```bash -wget https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate.sh -chmod +x autoupdate.sh -./autoupdate.sh +wget -O - https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate.sh | bash ``` (脚本由gary lau提供,非常感谢!) From 9faf34172c8b7a10871989185b3e116181803268 Mon Sep 17 00:00:00 2001 From: Chuck Date: Sat, 28 Mar 2020 11:31:10 +0800 Subject: [PATCH 2/3] bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参考 https://serverfault.com/questions/226386/wget-a-script-and-run-it --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b6c1e7..5de5901 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ opkg install zstd ``` 然后下载脚本执行 ```bash -wget -O - https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate.sh | bash +bash <(wget -qO- https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate.sh) ``` (脚本由gary lau提供,非常感谢!) From d2b7df24f64ee113dbfaa9674f4f7398d1737836 Mon Sep 17 00:00:00 2001 From: klever1988 <56048681+klever1988@users.noreply.github.com> Date: Sat, 28 Mar 2020 11:42:03 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5de5901..b933982 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ opkg install zstd ``` 然后下载脚本执行 ```bash -bash <(wget -qO- https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate.sh) +wget -qO- https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoupdate.sh | sh ``` (脚本由gary lau提供,非常感谢!)