mirror of
https://github.com/octoleo/hosts.git
synced 2024-12-29 12:32:44 +00:00
Use brackets in _verify_write_permissions()
.
This commit is contained in:
parent
6e751065de
commit
affd8d8657
2
hosts
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user