瀏覽代碼

Update diy.sh

kiddin9 3 年之前
父節點
當前提交
9d12530d74
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      devices/common/diy.sh

+ 1 - 1
devices/common/diy.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 #!/bin/bash
 #=================================================
 #=================================================
 shopt -s extglob
 shopt -s extglob
-commitid="$(curl -sfL https://github.com/openwrt/openwrt/commits/master/include | grep -o 'href=".*>kernel: bump 5.10' | head -1 | cut -d / -f 5 | cut -d '#' -f 1)"
+commitid="$(curl -sfL https://github.com/openwrt/openwrt/commits/master/include | grep -o 'href=".*>kernel: bump 5.10' | head -1 | cut -d / -f 5 | cut -d '"' -f 1)"
 version="$(git rev-parse HEAD)"
 version="$(git rev-parse HEAD)"
 git checkout $commitid
 git checkout $commitid
 git checkout HEAD^
 git checkout HEAD^