Skip to content

Instantly share code, notes, and snippets.

@MizukiSonoko
Last active May 11, 2016 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MizukiSonoko/1eee3bd7b12882bbff97bb78e58988e2 to your computer and use it in GitHub Desktop.
Save MizukiSonoko/1eee3bd7b12882bbff97bb78e58988e2 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -ne 1 ]; then
echo "plz ex[0-1][1-9] "
exit 1
fi
echo "
curl -s -f -L -u \"mizuki.sonoko/token:$API_KEY\" https://github.com/MizukiSonoko/$REPO_NAME/archive/master.zip -O
unzip master.zip
rm master.zip
mv $REPO_NAME-master/$1 ~/lp
rm -rf $REPO_NAME-master
cd ~/Kadai/$1/testdir
make clean
make
./testall.sh
" > script.sh
ssh ID @university.ac.jp 'bash -s' < script.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment