Accepting request 1085607 from home:michael-chang:branches:Base:System

- grub2-once: Fix 'sh: terminal_output: command not found' error (bsc#1204563)

OBS-URL: https://build.opensuse.org/request/show/1085607
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=454
This commit is contained in:
Michael Chang 2023-05-11 05:03:33 +00:00 committed by Git OBS Bridge
parent 05861f0e0c
commit 0b52761bc4
2 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,12 @@ sub sh_test($) {
my ( $exp ) = @_;
dPrint( "?? '$exp' ");
# Don't test grub command return status from linux shell, this often results
# in command not found error. In such case the expression often has no
# opening bracket and just returning false here to signify -ENOCMD error.
return 0 if ( $exp =~ m{^\s*[^\[]});
$exp .= " ]" if ( $exp =~ m{^\[.*[^\]]\s*$} ); # gnaaa
#my $t = qx{set -x; $exp};
my $t = qx{$exp};

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 4 06:58:12 UTC 2023 - Michael Chang <mchang@suse.com>
- grub2-once: Fix 'sh: terminal_output: command not found' error (bsc#1204563)
-------------------------------------------------------------------
Wed Apr 26 07:22:03 UTC 2023 - Gary Ching-Pang Lin <glin@suse.com>