=================================================================== RCS file: /cvs/openbsd/sxxu/Attic/install.sxxu,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- openbsd/sxxu/Attic/install.sxxu 2010/04/20 18:26:00 1.7 +++ openbsd/sxxu/Attic/install.sxxu 2010/04/21 00:21:59 1.8 @@ -1,5 +1,5 @@ #!/bin/ksh - -# $Id: install.sxxu,v 1.7 2010/04/20 17:26:00 andrew Exp $ +# $Id: install.sxxu,v 1.8 2010/04/20 23:21:59 andrew Exp $ # Copyright (c) 2010 Andrew Fresh # @@ -120,18 +120,20 @@ local _oldpwd="${PWD}" cd "${_role}" + local _rolepwd="${PWD}" if [ -e siteXXrc ]; then echo ' ==> Including siteXXrc' . siteXXrc fi - append_pkg_path - run_command_lists - apply_patches - install_packages + cd "${_rolepwd}" && append_pkg_path + cd "${_rolepwd}" && run_command_lists + cd "${_rolepwd}" && apply_patches + cd "${_rolepwd}" && install_packages if [ -e install.site ]; then + cd "${_rolepwd}" if [ -x install.site ]; then echo ' ==> Running install.site' ./install.site