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:
parent
05861f0e0c
commit
0b52761bc4
@ -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};
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user