Prefer more portable test(1) constructs
* util/grub.d/00_header.in (make_timeout): Use && rather than test -a. * util/grub.d/10_windows.in: Likewise. * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather than test -o. * util/grub.d/30_os-prober.in: Use && rather than test -a, and || rather than test -o.
This commit is contained in:
parent
09a836e59c
commit
ff66b8e7d8
5 changed files with 17 additions and 7 deletions
|
@ -30,7 +30,7 @@ if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
|
||||
if [ -z "`which os-prober 2> /dev/null`" ] || [ -z "`which linux-boot-prober 2> /dev/null`" ] ; then
|
||||
# missing os-prober and/or linux-boot-prober
|
||||
exit 0
|
||||
fi
|
||||
|
@ -119,7 +119,7 @@ for OS in ${OSPROBED} ; do
|
|||
EXPUUID="${EXPUUID}@${DEVICE#*@}"
|
||||
fi
|
||||
|
||||
if [ "x${GRUB_OS_PROBER_SKIP_LIST}" != "x" -a "x`echo ${GRUB_OS_PROBER_SKIP_LIST} | grep -i -e '\b'${EXPUUID}'\b'`" != "x" ] ; then
|
||||
if [ "x${GRUB_OS_PROBER_SKIP_LIST}" != "x" ] && [ "x`echo ${GRUB_OS_PROBER_SKIP_LIST} | grep -i -e '\b'${EXPUUID}'\b'`" != "x" ] ; then
|
||||
echo "Skipped ${LONGNAME} on ${DEVICE} by user request." >&2
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue