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