1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-21 20:35:10 +00:00

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

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