pwd
currentPath=$PWD
> /d/Workspace/github/blog
dirname $PWD
> /d/Workspace/github
dir
> dos-netstat-80.bat git-global-user.sh git-registry-taobao.sh package.json
> git-commit.sh git-local-user.sh git-remote-template.sh README.md
> git-commit-push.sh git-pull-rebase.sh LICENSE yx-env.iml
ls
> blog/ npm-template/ yx-app/ yx-js/ yx-node/
folder=$(basename $PWD)
echo ${folder}
parentFolder=$(basename $(dirname $PWD))
echo ${parentFolder}
$ for f in *; do
echo $f;
done
$ for f in $(dir); do
echo $f;
done
newline=$'\n'
newline2=$'\x0a'
multiLineStr1="$newline Title $newline Description $newline"
multiLineStr1+="second line"
echo "$multiLineStr1"
multiLineStr2="first line"
multiLineStr2+="$newline2"
multiLineStr2+="Second line"
echo "$multiLineStr2"
template=$(git remote | grep template);
if [[ $template != template ]]; then
git remote add template $REPO
fi
# [: !=:
if [ "${filename}" != 'README.md' ]; then
fi
# [: !=:
if [[ "${filename}" != 'README.md' ]]; then
fi
# [: !=:
if [[ "${filename}" = '' ]]; then
fi
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blog@1.0.0 git-push-mac: `node ./assets/scripts/add-timestamp.js file=. && cd ../yx-env && bash git-push.sh blog`
npm ERR! Exit status 1
at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket.<anonymous> (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:673:12) {
killed: false,
code: 1,
signal: null,
cmd: 'bash git-push.sh blog clean'
}