diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-02-27 13:31:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-02-27 13:31:00 +0100 |
commit | 7baf5b6609ba5858913d96a4662c4ee6969708ac (patch) | |
tree | 17d1781bd9f89ca471a1ef9e87f3fb974a932444 /bin/ct | |
parent | 7d105f4cec73620dffd437bf87e0cca47152e375 (diff) |
check_prereqs: preserve working directory (thanks to Simon Campese)
Diffstat (limited to 'bin/ct')
-rwxr-xr-x | bin/ct | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -534,6 +534,7 @@ function check_prereqs { typeset -a -U force_install install maybe_install typeset warn info typeset package=${1} + typeset pwd_orig=${PWD} [[ -r ${PKG_DIR}/${package}/prereqs ]] || return 0 cd ${PKG_DIR}/${package} @@ -633,6 +634,8 @@ function check_prereqs { } fi } + + cd ${pwd_orig} } # Write a package's documentation to .collected |