From 11d749c01ce6612b27ad30f30e367e013e3ca8ca Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 26 Oct 2023 22:22:07 +0200 Subject: [PATCH] tests logging --- tests-ng/chmod-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests-ng/chmod-install.sh b/tests-ng/chmod-install.sh index 708bb39..56f4962 100755 --- a/tests-ng/chmod-install.sh +++ b/tests-ng/chmod-install.sh @@ -33,10 +33,10 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg has_rights() { echo "testing ${1} is ${2}" - [ ! -e "$1" ] && echo "$(basename "$1") does not exist" && exit 1 + [ ! -e "${1}" ] && echo "${1} does not exist" && exit 1 local mode - mode=$(stat -L -c '%a' "$1") - [ "${mode}" != "$2" ] && echo "bad mode for $(basename "$1") (${mode} VS expected ${2})" && exit 1 + mode=$(stat -L -c '%a' "${1}") + [ "${mode}" != "${2}" ] && echo "bad mode for $(basename "${1}") (${mode} VS expected ${2})" && exit 1 true }