Created
May 1, 2014 14:59
-
-
Save ota42y/11453515 to your computer and use it in GitHub Desktop.
pushd: not foundというエラー ref: http://qiita.com/ota42y/items/fe1549f339b65ac88e31
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
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "plese set folder" 1>&2 | |
exit 1 | |
fi | |
dir=$1 | |
main=${dir%/} | |
today=`date "+%d.txt"` | |
log=“${main}/log/${today}" | |
pushd $(dirname $0) | |
git checkout . | |
git pull origin master | |
./scripta/start.sh $main $log | |
./scriptb/start.sh $main $log | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment