Skip to content

Instantly share code, notes, and snippets.

@ota42y
Created May 1, 2014 14:59
Show Gist options
  • Save ota42y/11453515 to your computer and use it in GitHub Desktop.
Save ota42y/11453515 to your computer and use it in GitHub Desktop.
pushd: not foundというエラー ref: http://qiita.com/ota42y/items/fe1549f339b65ac88e31
#!/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