File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def resume(self) -> None:
2323 '[[ ! "$(cat /sys/power/resume)" == "0:0" ]] || ewarn "/sys/power/resume not empty, resume has already been attempted!"' ,
2424
2525 # Safety checks
26- 'if [ ! -z $(lsblk -Q MOUNTPOINT)] ; then' ,
26+ 'if ! [ -z $(lsblk -Q MOUNTPOINT)] ; then' ,
2727 r' eerror "Cannot safely resume with mounted block devices:\n$(lsblk -Q MOUNTPOINT -no PATH)"' ,
2828 ' return 1' ,
2929 'fi' ,
@@ -46,7 +46,7 @@ def handle_early_resume(self) -> None:
4646 ' resume="$resumeval"' ,
4747 ' fi' ,
4848
49- ' if [ -n $resume ] ; then' ,
49+ ' if ! [ -z $resume ] ; then' ,
5050 ' if ! resume "$resume" ; then' ,
5151 ' eerror "If you wish to continue booting, remove the resume= kernel parameter."' ,
5252 ''' eerror " or run 'setvar noresume 1' from the recovery shell to skip resuming."''' ,
You can’t perform that action at this time.
0 commit comments