Browse Source
bash.custom: consider access perms of tmp folder
master
Pekka Helenius
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|