winlin

refine comments

1 #!/bin/bash 1 #!/bin/bash
2 2
3 -# sudo ln -sf `pwd`/git.commit.sh /bin/git-ensure-commit 3 +cat <<END >>/dev/null
  4 +touch git-ensure-commit &&
  5 +echo "bash `pwd`/git.commit.sh" >git-ensure-commit &&
  6 +chmod +x git-ensure-commit &&
  7 +sudo rm -f /bin/git-ensure-commit &&
  8 +sudo mv git-ensure-commit /bin/git-ensure-commit
  9 +END
4 10
5 echo "submit code to github.com" 11 echo "submit code to github.com"
6 12
1 #!/bin/bash 1 #!/bin/bash
2 2
3 -# sudo ln -sf `pwd`/git2unix.sh /bin/git2unix 3 +cat <<END >>/dev/null
  4 +touch git2unix &&
  5 +echo "bash `pwd`/git2unix.sh" >git2unix &&
  6 +chmod +x git2unix &&
  7 +sudo rm -f /bin/git2unix &&
  8 +sudo mv git2unix /bin/git2unix
  9 +END
4 10
5 dos2unix -V>/dev/null 2>&1 11 dos2unix -V>/dev/null 2>&1
6 ret=$?; if [[ 0 -ne $ret ]]; then 12 ret=$?; if [[ 0 -ne $ret ]]; then