Fixed the perms check for writable directory
This commit is contained in:
parent
8edce8d9b7
commit
e2052e1079
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user