Skip to content

Commit 62e0e36

Browse files
committed
Fix: invoke bundler in sudo
1 parent af56b89 commit 62e0e36

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

ci/tasks/os-images/build.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ sudo chown -R ubuntu .
3232
sudo chown -R ubuntu:ubuntu /mnt
3333
sudo chmod u+s "$(which sudo)"
3434

35-
cd "${REPO_ROOT}"
35+
pushd "${REPO_ROOT}/bosh-stemcell"
36+
bundle install
37+
popd
3638

3739
sudo --preserve-env --set-home --user ubuntu -- /bin/bash --login -i <<SUDO
3840
pushd "${REPO_ROOT}/bosh-stemcell"
3941
bundle install
4042
popd
4143
42-
bundle exec rake stemcell:build_os_image[$OPERATING_SYSTEM_NAME,$OPERATING_SYSTEM_VERSION,$OS_IMAGE]
43-
SUDO
44+
pushd "${REPO_ROOT}"
45+
bundle exec rake stemcell:build_os_image[$OPERATING_SYSTEM_NAME,$OPERATING_SYSTEM_VERSION,$OS_IMAGE]
46+
popd
47+
SUDO

0 commit comments

Comments
 (0)