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
usage() | |
{ | |
echo | |
echo -e >&2 "\tUsage: $0 [-f]" | |
echo -e "\t\t-f It's usage hogehoge !!!" | |
echo | |
} | |
while getopts "hf" flag | |
do |
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
check() | |
{ | |
local result=$? | |
local red=$'\e[0;31m' | |
local green=$'\e[0;32m' | |
local default=$'\e[m' | |
if [ $result -eq 0 ] | |
then | |
echo -n $green | |
echo $1 OK |
NewerOlder