From 70d495c1cb14570524011935bbe0e34ca22f8d4d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 18 May 2017 08:29:40 +0200 Subject: bin/return-assignment: change one pushd/popd to (cd ...) --- bin/return-assignment | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/return-assignment b/bin/return-assignment index 951eb8c..df643b3 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -103,9 +103,10 @@ packages=(*.pkg.tar.xz) mkdir -p "${master_mirror_directory}/i486/$4-staging/" mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i486/$4-staging/" -pushd "${master_mirror_directory}/i486/$4-staging" > /dev/null -repo-add -v -s -k "${repo_key}" "$4-staging.db.tar.gz" "${packages[@]}" -popd > /dev/null +( + cd "${master_mirror_directory}/i486/$4-staging" + repo-add -v -s -k "${repo_key}" "$4-staging.db.tar.gz" "${packages[@]}" +) # remove all loops which are broken by this package sed '1d' "${work_dir}/package-states/$1.$2.$3.$4.locked" | \ -- cgit v1.2.3-70-g09d2