mirror of https://git.envs.net/envs/burrow.git
properly silenced update-git and cd movements
This commit is contained in:
parent
34b61e9e3a
commit
c263bf8903
6
burrow
6
burrow
|
@ -51,11 +51,11 @@ arg_rss=0
|
||||||
|
|
||||||
# silence directory movements
|
# silence directory movements
|
||||||
push_d () {
|
push_d () {
|
||||||
cd "$@" || exit
|
cd "$@" > /dev/null 2> /dev/null || exit
|
||||||
}
|
}
|
||||||
|
|
||||||
pop_d () {
|
pop_d () {
|
||||||
cd - || exit
|
cd - > /dev/null 2> /dev/null || exit
|
||||||
}
|
}
|
||||||
|
|
||||||
show_help () {
|
show_help () {
|
||||||
|
@ -520,7 +520,7 @@ create_config () {
|
||||||
|
|
||||||
update_git () {
|
update_git () {
|
||||||
push_d "$config_dir_gopher"
|
push_d "$config_dir_gopher"
|
||||||
if git rev-parse --is-inside-work-tree 2> /dev/null; then
|
if [ "$(git rev-parse --is-inside-work-tree 2> /dev/null)" ]; then
|
||||||
git pull -q > /dev/null 2> /dev/null
|
git pull -q > /dev/null 2> /dev/null
|
||||||
fi
|
fi
|
||||||
pop_d
|
pop_d
|
||||||
|
|
Loading…
Reference in New Issue