Skip to content

Commit

Permalink
ci: use --user-install on Arch Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 7, 2025
1 parent ecd5d52 commit 97479dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dockerfiles/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ rm -rf build
cp -r /host build
cd build

if sudo which rake; then
if gem env | grep -q -- --user-install; then
# Arch Linux
rake install
elif gem env | grep -q -- --install-dir; then
# Gentoo Linux
rake install
elif sudo which rake; then
sudo rake install
else
rake install
Expand Down

0 comments on commit 97479dc

Please sign in to comment.