diff --git a/.github/workflows/sync-files.yml b/.github/workflows/sync-files.yml index af66d9f..b607929 100644 --- a/.github/workflows/sync-files.yml +++ b/.github/workflows/sync-files.yml @@ -20,13 +20,13 @@ jobs: wget -O ./rk35xx/feeds.conf https://fw0.koolcenter.com/iStoreOS/station-p2/feeds.conf --no-check-certificate wget -O ./rk35xx/.config https://fw0.koolcenter.com/iStoreOS/station-p2/config.buildinfo --no-check-certificate content=$(cat $GITHUB_WORKSPACE/file/model.txt) - model_string=$(echo "$content" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//') + model_data=$(echo "$content" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//') sed -i "/CONFIG_TARGET_DEVICE_rockchip_.*=.*/d" ./rk35xx/.config sed -i "/CONFIG_PACKAGE_dtc=y/d" ./rk35xx/.config # sed -i "/CONFIG_PACKAGE_luci-app-istorex=m/d" ./rk35xx/.config sed -i "/#\s*CONFIG_TARGET_DEVICE_rockchip_rk35xx_DEVICE_jp_tvbox\s*is\s*not\s*set/d" ./rk35xx/.config sed -i "/#\s*CONFIG_TARGET_DEVICE_rockchip_rk35xx_DEVICE_panther_x2\s*is\s*not\s*set/d" ./rk35xx/.config - echo -e "\\n$model_string" >> ./rk35xx/.config + echo -e "\\n$model_data" >> ./rk35xx/.config - name: 同步配置 uses: peaceiris/actions-gh-pages@v3