diff options
author | Hugues Hiegel <hugues.hiegel@anevia.com> | 2015-04-01 10:41:06 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@anevia.com> | 2015-04-01 10:41:06 +0200 |
commit | 93f362669f1da5ac5d89ffa1aeb04820dfa5898a (patch) | |
tree | 9174f16c0670da03a561f177362701c39c4e773e | |
parent | d22a945d474fbfbc8756f2e22c9b2ca47543c5f6 (diff) |
[Funcs] Don’t check for ~/.pbuilderrc if it doesn’t exist..
-rw-r--r-- | net:lab1.anevia.com/user:hhiegel/Functions.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net:lab1.anevia.com/user:hhiegel/Functions.zsh b/net:lab1.anevia.com/user:hhiegel/Functions.zsh index 4431ad2..021fa56 100644 --- a/net:lab1.anevia.com/user:hhiegel/Functions.zsh +++ b/net:lab1.anevia.com/user:hhiegel/Functions.zsh @@ -1,5 +1,8 @@ __debian_dist() { + + [ -e ~/.pbuilderrc ] || return + _dist=${DIST:-$(awk < ~/.pbuilderrc '/DIST:=/ { gsub(/^.*{DIST:=/, "") ; gsub(/}$/, "") ; print ; exit }')} print -Pn $C_${_env_colors[dist_$_dist]:-$_env_colors[dist_none]} ( export | grep -q '^DIST=' ) && print -Pn ";"$color[bold] |