winlin

refine comments

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