File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 47
47
[._ ]* .un~
48
48
49
49
/output
50
+ /temp
Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ gem_install() {
28
28
29
29
case $RUBY_ENV in
30
30
ruby)
31
- su $USERNAME -c " gem install $PARAMS "
31
+ if [ " $GEM_HOME " != " " ] && ([ -d $GEM_HOME ] && [ -w $GEM_HOME ] || [ -d ` dirname $GEM_HOME ` ] && [ -w ` dirname $GEM_HOME ` ]); then
32
+ su $USERNAME -c " gem install $PARAMS "
33
+ else
34
+ su $USERNAME -c " gem install --user-install $PARAMS "
35
+ fi
32
36
;;
33
37
mise)
34
38
su $USERNAME -c " mise exec -- gem install $PARAMS "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ export PATH=" $( ruby -r rubygems -e ' puts Gem.user_dir' ) /bin:$PATH "
5
+
4
6
sudo apt-get update -y > /dev/null
5
7
sudo apt-get install -y curl jq ca-certificates > /dev/null
6
8
You can’t perform that action at this time.
0 commit comments