From f1d4e6ed9df3316ffe8f451c8d0a16257d4678db Mon Sep 17 00:00:00 2001 From: Mathieu Trossevin Date: Tue, 6 Feb 2024 15:03:21 +0100 Subject: [PATCH] fix(includes): Avoid breaking is_btrfs if path doesn't exists This should return with a err code of 1, not result in the entire command breaking --- server/lib/includes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/includes b/server/lib/includes index 59c31c8..1567c77 100755 --- a/server/lib/includes +++ b/server/lib/includes @@ -136,7 +136,7 @@ is_btrfs() { inode=$(stat --format=%i "${path}") - test $inode -eq 256 + test "$inode" -eq 256 } # Returns the list of jails found in the "jails" directory (default)