Created
October 2, 2014 01:25
-
-
Save Qooh0/6cf25e6079cd0a49d669 to your computer and use it in GitHub Desktop.
curl で API を適当にテスト
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
#!/usr/bin/env bash | |
SH_DIR=$(dirname $0) | |
if [ $# -ne 1 ]; then | |
echo '引数はひとつ' | |
exit | |
fi | |
ARG=$1 | |
case $ARG in | |
'hoge' ) curl 'aaa' > /tmp/test;; | |
* ) echo '不正な値' | |
easc | |
# /tmp/test と テストデータと突き合わせ | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment