Use brackets in `_verify_write_permissions()`.

This commit is contained in:
William Melody 2020-05-17 10:55:36 -07:00
parent 6e751065de
commit affd8d8657
1 changed files with 1 additions and 1 deletions

2
hosts
View File

@ -450,7 +450,7 @@ _print_entries() {
# performed due to the lack of write permissions. If `$_AUTO_SUDO` is enabled,
# then run the command with sudo and exit with the command's exit value.
_verify_write_permissions() {
if ! test -w "${HOSTS_PATH}"
if [[ ! -w "${HOSTS_PATH}" ]]
then
if ((_AUTO_SUDO))
then