repo-add: use pushd/popd
commit7ce90bb135c04b4421ca2824099e6e72659721b1
authorDan McGee <dan@archlinux.org>
Tue, 11 Jan 2011 21:15:07 +0000 (11 15:15 -0600)
committerDan McGee <dan@archlinux.org>
Tue, 11 Jan 2011 23:18:46 +0000 (11 17:18 -0600)
tree603a1238714a3c32ffa7008a0d0f570e31a52a77
parenta9cbd15260b396c38b7d5ffe5669994e65f9a86f
repo-add: use pushd/popd

Rather than explicit cd calls, we can use the directory stack to our
advantage. This also removes the need to store and restore $startdir, so
kill the variable entirely.

Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/repo-add.sh.in