From affd8d8657907149c55d294807401b3893387568 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 17 May 2020 10:55:36 -0700 Subject: [PATCH] Use brackets in `_verify_write_permissions()`. --- hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts b/hosts index a08ba60..85819dd 100755 --- a/hosts +++ b/hosts @@ -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