diff options
-rwxr-xr-x | lib/keyringer/functions | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 8bad9ed..667b0cd 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -115,14 +115,9 @@ function keyringer_is_git { function keyringer_check_tmp { local path="$1" local major - local mode - - if [ -z "$path" ]; then - return - fi # Mode check - if [ "`stat -c "%A" $path`" != "drwxrwxrwt" ]; then + if [ -z "$path" ] || [ ! -d "$path" ] || [ ! -w "$path" ] || [ ! -x "$path" ]; then return 1 fi |