Last active
August 27, 2019 12:19
-
-
Save jiro4989/da556a704b31581243eaaae49f5a146c to your computer and use it in GitHub Desktop.
Ansibleがメッセージを出力する時に使用するcowsayを置き換えるスクリプト
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 | |
| # 使い方: | |
| # | |
| # このコマンドを /bin/cowsay | |
| # あるいは/usr/local/bin/cowsayとかに配置して実行権限をつける | |
| shift 3 | |
| cmd="$(shuf -en1 "unko.shout" "muscular shout" "edf.say")" | |
| eval $cmd $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment