Unverified Commit b2c25b68 authored by Koichiro Iwao's avatar Koichiro Iwao
Browse files

skip cd in to DEFINITION_DIR in subshell

as it is not necessary. Pointed out by @mislav in review.
parent 47c18a46
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1208,11 +1208,9 @@ list_definitions() {
list_maintained_versions() {
  { for DEFINITION_DIR in "${RUBY_BUILD_DEFINITIONS[@]}"; do
      [ -d "$DEFINITION_DIR" ] && \
      (
        cd "$DEFINITION_DIR";
        grep -L -e warn_eol * | \
        grep -L -e warn_eol "$DEFINITION_DIR"/* 2>/dev/null | \
        sed 's|.*/||' | \
        grep -v -e '-rc[0-9]*$' -e '-preview[0-9]*$' -e '-dev$'
      )
    done
  } | extract_latest_versions | sort_versions | uniq
}