diff options
author | 2022-09-13 20:21:21 +0000 | |
---|---|---|
committer | 2022-09-13 22:37:20 +0000 | |
commit | 7a5c2b205e4f0c3700f41f2ccd2b104476b8f026 (patch) | |
tree | 1a4f33f8d68139a6bdac2657ed2e9860efc194d6 /test/features | |
parent | tests: stop mixing tabs and spaces (diff) | |
download | firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.tar.gz firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.tar.zst firejail-7a5c2b205e4f0c3700f41f2ccd2b104476b8f026.zip |
tests: use bash-style [[...]] instead of [...]
Diffstat (limited to 'test/features')
-rwxr-xr-x | test/features/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/features/test.sh b/test/features/test.sh index aaf5fd089..44677aaa7 100755 --- a/test/features/test.sh +++ b/test/features/test.sh | |||
@@ -8,7 +8,7 @@ OVERLAY="overlay" | |||
8 | CHROOT="chroot" | 8 | CHROOT="chroot" |
9 | NETWORK="network" | 9 | NETWORK="network" |
10 | 10 | ||
11 | while [ $# -gt 0 ]; do # Until you run out of parameters . . . | 11 | while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . |
12 | case "$1" in | 12 | case "$1" in |
13 | --nooverlay) | 13 | --nooverlay) |
14 | OVERLAY="none" | 14 | OVERLAY="none" |
@@ -61,7 +61,7 @@ echo "TESTING: 1.10 disable /selinux" | |||
61 | #################### | 61 | #################### |
62 | # networking features | 62 | # networking features |
63 | #################### | 63 | #################### |
64 | if [ $NETWORK == "network" ] | 64 | if [[ $NETWORK == "network" ]] |
65 | then | 65 | then |
66 | echo "TESTING: 2.1 hostname" | 66 | echo "TESTING: 2.1 hostname" |
67 | ./2.1.exp "$OVERLAY" "$CHROOT" | 67 | ./2.1.exp "$OVERLAY" "$CHROOT" |