install: fix permission check

This commit is contained in:
89luca89
2022-01-13 19:25:56 +01:00
parent b1426f31c6
commit 91f5c5b4d6
+1 -2
View File
@@ -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"