Created
March 29, 2025 11:40
finds current asdf ruby version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
current_ruby=$(asdf current ruby | awk '{print $2}') | |
if [ -z "$current_ruby" ]; then | |
echo "Error: Could not determine current Ruby version via asdf." >&2 | |
exit 1 | |
else | |
echo "Found $current_ruby" | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment