diff --git a/openwrt-builder-commit.dockerfile b/openwrt-builder-commit.dockerfile index f559f78..06b6851 100644 --- a/openwrt-builder-commit.dockerfile +++ b/openwrt-builder-commit.dockerfile @@ -9,9 +9,7 @@ ARG commit="master" RUN cd ${openwrt_dir} \ && ( git remote add ${remote} ${remoteurl} --tags || true ) -RUN cd ${openwrt_dir} \ - && git fetch --all \ - && git checkout ${remote}/${commit} || git checkout "${commit}" +RUN cd ${openwrt_dir} && git fetch --all && { git checkout ${remote}/${commit} || git checkout "${commit}" ; } RUN cd ${openwrt_dir} \ && ./scripts/feeds update -a \