From 02aeb4af39dc83011bc755847e684f4ad4d24896 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 18 Dec 2021 15:29:32 +0900 Subject: [PATCH] main: fix the message of owner errors of cache directories --- ble.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ble.pp b/ble.pp index f21e5015..3b6f1375 100644 --- a/ble.pp +++ b/ble.pp @@ -410,7 +410,10 @@ function ble/base/.create-user-directory { return 1 fi elif ! [[ -r $dir && -w $dir && -x $dir ]]; then - echo "ble.sh: permision of '$tmpdir' is not correct." >&2 + ble/util/print "ble.sh: permission of '$dir' is not correct." >&2 + return 1 + elif [[ ! -O $dir ]]; then + ble/util/print "ble.sh: owner of '$dir' is not correct." >&2 return 1 fi eval "$var=\$dir"