Skip to content

Commit a7b1fba

Browse files
committed
Tweak
1 parent 008b43d commit a7b1fba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chezmoi/dot_local/bin/executable_ruby

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ if [ -x /workspaces/github/bin/safe-ruby ]; then
44
exec /workspaces/github/bin/safe-ruby "$@"
55
else
66
export PATH=${PATH//":$HOME/.local/bin:"/":"}
7-
command -v rbenv && eval "$(rbenv init -)"
8-
command ruby "$@"
7+
if command -v rbenv > /dev/null; then
8+
eval "$(rbenv init -)"
9+
command ruby "$@"
10+
fi
911
fi

0 commit comments

Comments
 (0)