Created
November 1, 2023 11:31
-
-
Save fordnox/66a0efa0ca092a121cef19018563e36f to your computer and use it in GitHub Desktop.
Random echo between 2 values in Makefile
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
#!make | |
run: | |
@if [ $$(($$RANDOM % 2)) -eq 0 ]; then \ | |
echo 1; \ | |
else \ | |
echo 2; \ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment