From 7a5c2b205e4f0c3700f41f2ccd2b104476b8f026 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Tue, 13 Sep 2022 20:21:21 +0000 Subject: tests: use bash-style [[...]] instead of [...] --- test/fs/fs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/fs') diff --git a/test/fs/fs.sh b/test/fs/fs.sh index 07d33bee6..697c86d3d 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh @@ -34,7 +34,7 @@ rm -f ~/_firejail_test_dir echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)" ./sys_fs.exp -if [ -c /dev/kmsg ]; then +if [[ -c /dev/kmsg ]]; then echo "TESTING: kmsg access (test/fs/kmsg.exp)" ./kmsg.exp else @@ -45,7 +45,7 @@ echo "TESTING: read/write /var/tmp (test/fs/fs_var_tmp.exp)" ./fs_var_tmp.exp rm -f /var/tmp/_firejail_test_file -if [ "$(uname -m)" = "x86_64" ]; then +if [[ $(uname -m) == "x86_64" ]]; then fjconfig=/etc/firejail/firejail.config printf 'private-lib yes\n' | sudo tee -a "$fjconfig" >/dev/null echo "TESTING: private-lib (test/fs/private-lib.exp)" @@ -60,7 +60,7 @@ echo "TESTING: read/write /var/lock (test/fs/fs_var_lock.exp)" ./fs_var_lock.exp rm -f /var/lock/_firejail_test_file -if [ -w /dev/shm ]; then +if [[ -w /dev/shm ]]; then echo "TESTING: read/write /dev/shm (test/fs/fs_dev_shm.exp)" ./fs_dev_shm.exp rm -f /dev/shm/_firejail_test_file -- cgit v1.2.3-54-g00ecf