From fe0ca65cae3070586d08d9cb03ce5aaeb70e4bf0 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Wed, 10 Oct 2018 19:39:40 +0300 Subject: [PATCH] bash.custom: consider access perms of tmp folder --- bash.custom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash.custom b/bash.custom index 5c52816..35c0167 100644 --- a/bash.custom +++ b/bash.custom @@ -805,7 +805,7 @@ sudocd() { local PERMS=$(stat -c %A "${1}") - if [[ $(echo "${PERMS:9:1}") == "x" ]]; then + if [[ $(echo "${PERMS:9:1}") =~ x|t ]]; then cd "${1}" else