Commit c2b2e152 authored by Mislav Marohnić's avatar Mislav Marohnić
Browse files

Merge pull request #653 from singlethink/bug-fix-noexec-check

Fix TMPDIR noexec check to explicitly exit with a zero exit status on success
parents a330ab1c aaf8a852
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1027,7 +1027,10 @@ fi
tmp_executable="${TMP}/ruby-build-test.$$"
noexec=""
if mkdir -p "$TMP" && touch "$tmp_executable" 2>/dev/null; then
  cat > "$tmp_executable" <<<"#!$BASH"
  cat > "$tmp_executable" <<-EOF
	#!${BASH}
	exit 0
	EOF
  chmod +x "$tmp_executable"
else
  echo "ruby-build: TMPDIR=$TMP is set to a non-accessible location" >&2