diff options
author | Frederik "Freso" S. Olesen | 2014-12-16 22:29:44 +0100 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2015-07-12 15:29:01 +0200 |
commit | bd1cb583cac9c9982761718acf0f5e6df9c6b766 (patch) | |
tree | 3034ba8425789ec6ada7c64ed8046f439521f72b | |
parent | 9608f0a81578ca35b98810b4c93c8f1d2379b1bf (diff) | |
download | aur-bd1cb583cac9c9982761718acf0f5e6df9c6b766.tar.gz |
networkmanager-dispatcher-chrony: Fix "==" bashism.
https://wiki.ubuntu.com/DashAsBinSh#A.5B
`checkbashisms` output:
> possible bashism in 10-chrony line 17 (should be 'b = a'):
> [ "$(nmcli -t --fields STATE g)" == "connected" ];
Closes #8.
-rwxr-xr-x | 10-chrony | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/10-chrony b/10-chrony index 8931ac161824..b2ed0e5ffc6f 100755 --- a/10-chrony +++ b/10-chrony @@ -14,7 +14,7 @@ chrony_cmd() { } nm_connected() { - [ "$(nmcli -t --fields STATE g)" == "connected" ]; + [ "$(nmcli -t --fields STATE g)" = "connected" ]; } case "$STATUS" in |