difftastic/vendor/tree-sitter-hack/bin/require_ruby

7 lines
151 B
Bash

#!/bin/bash
if ! ruby --version | grep -qE "^ruby (2\.[7-]|[3-]\.)"; then
echo "Ruby 2.7 or later is required for this script to work."
exit 1
fi