]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 18 Feb 2019 23:19:12 +0000 (23:19 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 18 Feb 2019 23:19:12 +0000 (23:19 +0000)
etc/profile.d/functions

index 50cf88c55a76865d31fe5f30018d459206006adb..cb7de0b55567e1bebc2d7b24ae826629f4a054ac 100755 (executable)
@@ -692,7 +692,8 @@ password_create() {
        echo
 }
 
-if ! type which > /dev/null; then
+# Missing sometimes by default
+if ! type which >/dev/null 2>&1; then
 
 which() {
        type "$1" 2>&1