From fcdcda156d94ae2e5f0252ca5c9f5fadd814dbbf Mon Sep 17 00:00:00 2001 From: Tobias Stein Date: Sun, 11 Dec 2022 21:40:00 +0100 Subject: [PATCH] Fix syntax error --- class/86-hw4f_disk2.sh | 2 +- scripts/HW4F_DESKTOP_LAST/50-post-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/86-hw4f_disk2.sh b/class/86-hw4f_disk2.sh index 4f67eae..10e3b69 100755 --- a/class/86-hw4f_disk2.sh +++ b/class/86-hw4f_disk2.sh @@ -3,7 +3,7 @@ diskcount="$(wc -w <<< "$disklist")" if ifclass HW4F_DESKTOP \ - && [ $diskcount > 1 ]; then + && [ $diskcount -gt 1 ]; then echo "Second disk found. Adding class 'HW4F_DESKTOP_DISK2'" newclasses="HW4F_DESKTOP_DISK2" fi diff --git a/scripts/HW4F_DESKTOP_LAST/50-post-install b/scripts/HW4F_DESKTOP_LAST/50-post-install index e129cea..850f95f 100755 --- a/scripts/HW4F_DESKTOP_LAST/50-post-install +++ b/scripts/HW4F_DESKTOP_LAST/50-post-install @@ -10,6 +10,6 @@ EOF fi if ifclass HW4F_DESKTOP_DISK2 \ - && [ $diskcount > 1 ]; then + && [ "$diskcount" -gt 1 ]; then $ROOTCMD chown -Rc "$username:$username" /media/zusatz fi