diff options
author | Erich Eckner <git@eckner.net> | 2017-05-18 08:29:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-05-18 08:29:40 +0200 |
commit | 70d495c1cb14570524011935bbe0e34ca22f8d4d (patch) | |
tree | e6b98697d1286b5f94d03740b2a8fe6ba60d17fd | |
parent | 575f2a2cc314d873ced9365ede9560101e3ad1fb (diff) | |
download | builder-70d495c1cb14570524011935bbe0e34ca22f8d4d.tar.xz |
bin/return-assignment: change one pushd/popd to (cd ...)
-rwxr-xr-x | bin/return-assignment | 7 |
1 files 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" | \ |