From 91f5c5b4d6cfbc7c9db8649693f4d75709462ee2 Mon Sep 17 00:00:00 2001 From: 89luca89 Date: Thu, 13 Jan 2022 19:25:56 +0100 Subject: [PATCH] install: fix permission check --- install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install b/install index 31900ee8..006c8e51 100755 --- a/install +++ b/install @@ -71,8 +71,7 @@ fi # Ensure the foundamental variables are set and not empty, we will not proceed if # they are not all set. -[ ! -w "${dest_path}/bin" ] && printf >&2 "Cannot write into %s, permission denied.\n" "${dest_path}/bin" && exit 1 -[ ! -w "${dest_path}/share/man/man1" ] && printf >&2 "Cannot write into %s, permission denied.\n" "${dest_path}/share/man/man1" && exit 1 +[ ! -w "${dest_path}" ] && printf >&2 "Cannot write into %s, permission denied.\n" "${dest_path}" && exit 1 mkdir -p "${dest_path}/bin" mkdir -p "${dest_path}/share/man/man1"