summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik "Freso" S. Olesen2014-12-16 22:29:44 +0100
committerFrederik “Freso” S. Olesen2015-07-12 15:29:01 +0200
commitbd1cb583cac9c9982761718acf0f5e6df9c6b766 (patch)
tree3034ba8425789ec6ada7c64ed8046f439521f72b
parent9608f0a81578ca35b98810b4c93c8f1d2379b1bf (diff)
downloadaur-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-x10-chrony2
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