makepkg: safely change directories
commit923214497f1873a5bd1989aad867b629166d89b1
authorAllan McRae <allan@archlinux.org>
Fri, 9 Mar 2012 07:43:47 +0000 (9 17:43 +1000)
committerDan McGee <dan@archlinux.org>
Sat, 7 Apr 2012 16:27:39 +0000 (7 11:27 -0500)
treea91b5a5d16ad49eac2edb8280dc24da126f2a39d
parent1917c845f74640262e452b67836b41faca52eb4e
makepkg: safely change directories

In preparation for the removal of the global error trap we need a
way to ensure changing directories succeeds.  Add a "cd_safe"
wrapper that performs the necessary check.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in