diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-07-23 02:04:41 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-07-23 10:45:24 -0400 |
commit | e8d0a820cf455cb577b85d74869c0e8ddeaf4cb0 (patch) | |
tree | fa65e5ca5c03e17d4fa32fa2bf81b432bfc42cdf /bin | |
parent | 553e81439825500059d2391f2926a7c79e87bc8a (diff) | |
download | jenkins.debian.net-e8d0a820cf455cb577b85d74869c0e8ddeaf4cb0.tar.xz |
openwrt_common/save_lede_results: fix last path/popd/pushd bugs
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/reproducible_openwrt_common.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh index 34226ddf..70f811f8 100644 --- a/bin/reproducible_openwrt_common.sh +++ b/bin/reproducible_openwrt_common.sh @@ -34,7 +34,7 @@ save_logs() { save_lede_results() { RUN=$1 - cd bin/targets + pushd bin/targets for target in * ; do pushd $target || continue for subtarget in * ; do @@ -55,21 +55,27 @@ save_lede_results() { done popd fi + popd done popd done + popd # arch is like mips_34kc_dsp - popd bin/packages/ + pushd bin/packages/ for arch in * ; do pushd $arch || continue - for package in $(find * -name "*.ipk") ; do - mkdir -p $TMPDIR/$RUN/packages/$arch/$(dirname $package) - cp -p $package $TMPDIR/$RUN/packages/$arch/$(dirname $package)/ + for feed in * ; do + pushd $feed || continue + for package in $(find * -name "*.ipk") ; do + mkdir -p $TMPDIR/$RUN/packages/$arch/$feed/$(dirname $package) + cp -p $package $TMPDIR/$RUN/packages/$arch/$feed/$(dirname $package)/ + done + popd done popd done - pushd + popd } save_openwrt_results() { |