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
#!/bin/bash | |
# Check if running from within MSYS2. | |
if [ -z "$MSYSTEM" ]; | |
then | |
>&2 echo "This is intended to be run from within an MSYS2 environment." | |
exit 1 | |
fi | |
# Check arguments for correct length. |