Created
January 27, 2015 04:37
-
-
Save dohq/a9005972235fb1c2a975 to your computer and use it in GitHub Desktop.
CheckReturnCode
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
### リターンコードチェック関数 | |
function common_func_CheckRC(){ | |
if [ $# -eq 1 ]; then | |
if [ $1 -ne 0 ]; then | |
echo "情報取得に失敗しました。出力ファイルを確認して下さい。" | |
echo "リターンコード : "$1"" | |
exit 1 | |
fi | |
else | |
echo "引数が足りません。" | |
exit 1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment