summaryrefslogtreecommitdiff
path: root/contrib/scripts
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-05-15 14:46:41 +0200
committerThomas Haller <thaller@redhat.com>2023-05-15 14:46:49 +0200
commitfe78d15501c6b3597d0806a1f139e4cc0da84507 (patch)
treea0e0db2731a0fa12697e9227fdb8398369492236 /contrib/scripts
parente5eba7c789cca47a9b7871fdaf3be705de41f08f (diff)
downloadNetworkManager-th/build-fixes-cloud-setup.tar.gz
all: avoid "==" bashism in scriptsth/build-fixes-cloud-setup
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-xcontrib/scripts/nm-ci-run.sh2
-rwxr-xr-xcontrib/scripts/nm-setup-git.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/scripts/nm-ci-run.sh b/contrib/scripts/nm-ci-run.sh
index 676780b2c8..f9d7cf00a8 100755
--- a/contrib/scripts/nm-ci-run.sh
+++ b/contrib/scripts/nm-ci-run.sh
@@ -102,7 +102,7 @@ unset _WITH_VALGRIND_CHECKED
_with_valgrind() {
_is_true "$WITH_VALGRIND" 0 || return 1
- test "$_WITH_VALGRIND_CHECKED" == "1" && return 0
+ test "$_WITH_VALGRIND_CHECKED" = "1" && return 0
_WITH_VALGRIND_CHECKED=1
if [ "$IS_ALPINE" = 1 ]; then
diff --git a/contrib/scripts/nm-setup-git.sh b/contrib/scripts/nm-setup-git.sh
index 0e3610c5af..e2b4bdc6d8 100755
--- a/contrib/scripts/nm-setup-git.sh
+++ b/contrib/scripts/nm-setup-git.sh
@@ -62,7 +62,7 @@ git_config_reset() {
local val="$2"
local c=(git config --replace-all "$key" "$val")
- test "$#" == 2 || die "invalid arguments to git_config_add(): $@"
+ test "$#" -eq 2 || die "invalid arguments to git_config_add(): $@"
if [ "$(git config --get-all "$key")" = "$val" ]; then
SKIP=1 call "${c[@]}"
@@ -76,7 +76,7 @@ git_config_add() {
local val="$2"
local c=(git config --add "$key" "$val")
- test "$#" == 2 || die "invalid arguments to git_config_add(): $@"
+ test "$#" -eq 2 || die "invalid arguments to git_config_add(): $@"
if git config --get-all "$key" | grep -qFx "$val"; then
SKIP=1 call "${c[@]}"