From 557c38cced1d5afe658fcaf43469babb0e4d555e Mon Sep 17 00:00:00 2001 From: uzxmx Date: Sat, 14 Aug 2021 12:15:36 +0800 Subject: [PATCH] Use command to avoid name collision with shell builtins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mislav Marohnić --- bin/ruby-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ruby-build b/bin/ruby-build index 1ec4709025..7652345adc 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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