]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core200: Fix shell syntax error in update script
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Jan 2026 15:08:38 +0000 (15:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Jan 2026 15:08:38 +0000 (15:08 +0000)
Reported-by: Adam Gibbons <ag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/200/update.sh

index 59993b1959ce1413646f1d22934495d3961bda7e..cf5ca344af5624bf15071ccc0269996e6eca1aa7 100644 (file)
@@ -72,8 +72,9 @@ if [ $BOOTSIZE -lt 100000 ]; then
 fi
 
 # Check if reiser filesystem is used
-if [ `/bin/grep -c "reiserfs" /proc/self/mounts` > 0 ]; then
+if grep -q "reiserfs" /proc/self/mounts; then
        exit_with_error "ERROR cannot update because reiserfs no longer supported by kernel." 4
+fi
 
 # Remove the old kernel
 rm -rvf \