From e2052e107984e08a1ce44199066d2824d8137c88 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 19 Jul 2021 13:35:03 -0500 Subject: [PATCH] Fixed the perms check for writable directory --- Nano/Install-Nano.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nano/Install-Nano.bash b/Nano/Install-Nano.bash index 07f1b8e..491d84f 100755 --- a/Nano/Install-Nano.bash +++ b/Nano/Install-Nano.bash @@ -66,7 +66,7 @@ done [[ "${DIRECTORY}" == "" ]] && error "A directory was not provided!" [[ ! -d "${DIRECTORY}" ]] && error "The directory \"${DIRECTORY}\" does not exist" -[[ $(! test -w "${DIRECTORY}") ]] && error "You lack permissions to write to \"${DIRECTORY}\"" +[[ ! -w "${DIRECTORY}" ]] && error "You lack permissions to write to \"${DIRECTORY}\"" [[ $(confirmation "Copying *.nanorc files to ${DIRECTORY}, continue (y/N)? ") ]] && exit 1