Created
March 29, 2025 11:40
-
-
Save solrevdev/014a540bedab038721bb2953f0be0bc5 to your computer and use it in GitHub Desktop.
finds current asdf ruby version
This file contains hidden or 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