]> gitweb.pimeys.fr Git - config-20-100.git/commitdiff
Merge branch 'master' into perso
authorVincent Le Gallic <legallic@crans.org>
Fri, 26 Jul 2013 22:51:08 +0000 (00:51 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 26 Jul 2013 22:51:08 +0000 (00:51 +0200)
.bashrc

diff --git a/.bashrc b/.bashrc
index ae053a3a54790fb48ba6bb30c7a942cdce075c61..679c3a6e1749ce5697a43d4998fa90af39d647f9 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -98,11 +98,11 @@ get_vcs_info () {
 # Rien de spécial n'arrivera si vous n'avez pas le fichier .umaskrc
 function cd {
         builtin cd "$@"
+       ret=$?
         if [ -f ~/.umaskrc ]; then
             umask $(/usr/bin/awk 'BEGIN {pwd=ENVIRON["PWD"]; a=length(pwd); cmax=0} {if($1==pwd) {MASK=$2;exit}; c=length($1); if(c>a) {next}; if(substr(pwd,0,c)==$1 && c > cmax) {cmax=c; MASK=$2}} END {print MASK}' ~/.umaskrc) >/dev/null
-        else
-            return 0
         fi
+        return $ret
 }
 
 ### Attention à ce que vous éditez dans cette section ###