Skip to content

Commit 3954485

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 3954485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scripts/rpm-ostree_mock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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)