From 252fa7663c977a8642ba86c495d010b6ad943c1c Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Mon, 13 May 2024 11:09:21 +0200 Subject: [PATCH] fix rvm sourcing in bash closes #402 --- image/ruby_support/prepare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/ruby_support/prepare.sh b/image/ruby_support/prepare.sh index 03823703..dca8191c 100755 --- a/image/ruby_support/prepare.sh +++ b/image/ruby_support/prepare.sh @@ -26,7 +26,7 @@ run usermod -a -G rvm app run install -o root /pd_build/ruby_support/system-rvm-exec.sh /usr/bin/rvm-exec # Ensure bash always loads the RVM environment. -echo 'if [[ "$rvm_prefix" = "" ]]; then source /etc/profile.d/*rvm*; fi' >> /etc/bash.bashrc +echo 'if [[ "$rvm_prefix" = "" ]]; then for file in /etc/profile.d/*rvm*; do source $file; done; fi' >> /etc/bash.bashrc ## Install fake DPKG entry so that Passenger doesn't install Ruby from APT. echo "+ In /tmp:"