Skip to content

Instantly share code, notes, and snippets.

@Qooh0
Created October 2, 2014 01:25
Show Gist options
  • Save Qooh0/6cf25e6079cd0a49d669 to your computer and use it in GitHub Desktop.
Save Qooh0/6cf25e6079cd0a49d669 to your computer and use it in GitHub Desktop.
curl で API を適当にテスト
#!/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