Skip to content

Instantly share code, notes, and snippets.

@hiono
Last active January 3, 2016 10:39
Show Gist options
  • Save hiono/8451205 to your computer and use it in GitHub Desktop.
Save hiono/8451205 to your computer and use it in GitHub Desktop.
[obsolute] SHLVL が 1 の時だけgit pullを巡回。ログイン時に回すのに使う。
#!/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
@hiono
Copy link
Author

hiono commented Jan 16, 2014

obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment