X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=partial-repo.sh;h=06da2663713e791d196f9a737b4638e582484428;hb=refs%2Fheads%2Fnm-one-spec;hp=a41ced1128dc4f643f45c05d02ad2b27f0c35bb8;hpb=5f312750e0717b09251bdb7d80b763e7bcd8b17d;p=build.git diff --git a/partial-repo.sh b/partial-repo.sh index a41ced11..06da2663 100755 --- a/partial-repo.sh +++ b/partial-repo.sh @@ -14,7 +14,7 @@ case "$1" in *-h*) usage ;; esac set -e for rpms_dir in $(find "$@" -name RPMS) ; do - cd $rpms_dir + pushd $rpms_dir >& /dev/null cd .. echo "==================== Dealing with repo $(pwd)" mkdir -p PARTIAL-RPMS @@ -22,5 +22,5 @@ for rpms_dir in $(find "$@" -name RPMS) ; do echo "==================== building packages index in $(pwd) .." createrepo PARTIAL-RPMS echo '==================== DONE' - cd - >& /dev/null + popd >& /dev/null done