Last active
January 3, 2016 10:39
-
-
Save hiono/8451205 to your computer and use it in GitHub Desktop.
[obsolute] SHLVL が 1 の時だけgit pullを巡回。ログイン時に回すのに使う。
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 [ ${SHLVL} -le 1 ];then | |
(cat <<EOM | |
/home/vagrant/.dotfiles | |
EOM | |
) | while read line | |
do | |
ls -d $line | |
pushd $line | |
git pull -v exit 1 | |
popd > /dev/null | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
obsolete