mirror of
https://github.com/octoleo/hosts.git
synced 2025-04-05 15:01:51 +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,
|
# 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.
|
# then run the command with sudo and exit with the command's exit value.
|
||||||
_verify_write_permissions() {
|
_verify_write_permissions() {
|
||||||
if ! test -w "${HOSTS_PATH}"
|
if [[ ! -w "${HOSTS_PATH}" ]]
|
||||||
then
|
then
|
||||||
if ((_AUTO_SUDO))
|
if ((_AUTO_SUDO))
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user