Skip to content

Commit 5d2415e

Browse files
committed
Use [[ .. ]] for test using globs
Fixes the following shellcheck error: SC2081 (error): [ .. ] can't match globs. Use a case statement. https://www.shellcheck.net/wiki/SC2081
1 parent 3529811 commit 5d2415e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/scripts/rpm-ostree_mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/usr/bin/sh -x
1+
#!/bin/bash -x
22

33
# This script is meant to be a mock for `rpm-ostree`
44

55
# Write invocation with arguments to a file to allow making assertion.
66
echo "$*" >> /rpm-ostree_calls
77

8-
if [ "$*" != *"--append"* ]
8+
if [[ "$*" != *"--append"* ]]
99
then
1010
# Caller is trying to read kernel arguments.
1111
cat /proc/cmdline

0 commit comments

Comments
 (0)