Fixed the perms check for writable directory

This commit is contained in:
Price Hiller 2021-07-19 13:35:03 -05:00
parent 8edce8d9b7
commit e2052e1079

View File

@ -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