Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow named pipes as build definition argument #2462

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,10 @@ if [ "${#EXTRA_ARGUMENTS[@]}" -gt 0 ]; then
fi

if [ "$APPEND_DEFINITION_TO_PREFIX" = "true" ]; then
if [ -p "$DEFINITION_PATH" ]; then
echo "ruby-build: using named pipes in combination with \`--dir' is not possible" >&2
EARLY_EXIT=usage_error
fi
PREFIX_PATH="$PREFIX_PATH/$(basename "$DEFINITION_PATH")"
fi

Expand All @@ -1457,7 +1461,7 @@ usage_error )
esac

# expand the <definition> argument to full path of the definition file
if [ ! -f "$DEFINITION_PATH" ]; then
if [[ ! -f "$DEFINITION_PATH" && ! -p "$DEFINITION_PATH" ]]; then
for DEFINITION_DIR in "${RUBY_BUILD_DEFINITIONS[@]}"; do
if [ -f "${DEFINITION_DIR}/${DEFINITION_PATH}" ]; then
DEFINITION_PATH="${DEFINITION_DIR}/${DEFINITION_PATH}"
Expand Down