Skip to content

Commit

Permalink
Use command to avoid name collision with shell builtins
Browse files Browse the repository at this point in the history
Co-authored-by: Mislav Marohnić <hi@mislav.net>
  • Loading branch information
uzxmx and mislav committed Aug 14, 2021
1 parent 3306271 commit 557c38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ fetch_tarball() {
elif [ -n "$RUBY_BUILD_MIRROR_PACKAGE_URL" ]; then
mirror_url="$RUBY_BUILD_MIRROR_PACKAGE_URL"
elif [ -n "$RUBY_BUILD_MIRROR_CMD" ]; then
mirror_url="$("$RUBY_BUILD_MIRROR_CMD" "$package_url" "$checksum")"
mirror_url="$(command "$RUBY_BUILD_MIRROR_CMD" "$package_url" "$checksum")"
fi
fi

Expand Down

0 comments on commit 557c38c

Please sign in to comment.