Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-18 08:29:40 +0200
committerErich Eckner <git@eckner.net>2017-05-18 08:29:40 +0200
commit70d495c1cb14570524011935bbe0e34ca22f8d4d (patch)
treee6b98697d1286b5f94d03740b2a8fe6ba60d17fd /bin
parent575f2a2cc314d873ced9365ede9560101e3ad1fb (diff)
bin/return-assignment: change one pushd/popd to (cd ...)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment7
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" | \