diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-13 20:21:21 +0000 |
---|---|---|
committer | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-13 22:37:20 +0000 |
commit | 7a5c2b205e4f0c3700f41f2ccd2b104476b8f026 (patch) | |
tree | 1a4f33f8d68139a6bdac2657ed2e9860efc194d6 /test/utils | |
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/utils')
-rwxr-xr-x | test/utils/utils.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/utils.sh b/test/utils/utils.sh index d1d006f4f..647cbfb34 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh | |||
@@ -7,7 +7,7 @@ export MALLOC_CHECK_=3 | |||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | 7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) |
8 | export LC_ALL=C | 8 | export LC_ALL=C |
9 | 9 | ||
10 | if [ -f /etc/debian_version ]; then | 10 | if [[ -f /etc/debian_version ]]; then |
11 | libdir=$(dirname "$(dpkg -L firejail | grep fcopy)") | 11 | libdir=$(dirname "$(dpkg -L firejail | grep fcopy)") |
12 | export PATH="$PATH:$libdir" | 12 | export PATH="$PATH:$libdir" |
13 | fi | 13 | fi |
@@ -47,7 +47,7 @@ echo "TESTING: list (test/utils/list.exp)" | |||
47 | echo "TESTING: tree (test/utils/tree.exp)" | 47 | echo "TESTING: tree (test/utils/tree.exp)" |
48 | ./tree.exp | 48 | ./tree.exp |
49 | 49 | ||
50 | if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]; | 50 | if [[ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]] |
51 | then | 51 | then |
52 | echo "TESTING: cpu.print (test/utils/cpu-print.exp)" | 52 | echo "TESTING: cpu.print (test/utils/cpu-print.exp)" |
53 | ./cpu-print.exp | 53 | ./cpu-print.exp |