From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/memtest86+/files/
Date: Tue, 14 Mar 2017 23:54:58 +0000 (UTC) [thread overview]
Message-ID: <1489535667.8fe39c8d9fd69b55db808f93edb8c1cbee496f36.vapier@gentoo> (raw)
commit: 8fe39c8d9fd69b55db808f93edb8c1cbee496f36
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 14 23:46:48 2017 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 23:54:27 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fe39c8d
sysa-apps/memtest86+: rework grub shell style
Drop old portable shell style as we don't care about such insane shells.
sys-apps/memtest86+/files/39_memtest86+ | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/sys-apps/memtest86+/files/39_memtest86+ b/sys-apps/memtest86+/files/39_memtest86+
index 10e1964cb8d..9c9067a5e73 100644
--- a/sys-apps/memtest86+/files/39_memtest86+
+++ b/sys-apps/memtest86+/files/39_memtest86+
@@ -11,16 +11,14 @@ if [ -f "${memtest}" ] && [ -f "${memtestbsd}" ]; then
fi
submenu_indentation=""
-if [ "x${multiple_memtest}" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
+if [ "${multiple_memtest}" = "true" ] && [ "${GRUB_DISABLE_SUBMENU}" != "y" ]; then
submenu_indentation="${grub_tab}"
cat <<EOF
submenu 'Memtest86+' {
EOF
fi
-
if [ -f "${memtest}" ]; then
-
gettext_printf "Found memtest image: %s\n" "${memtest}" >&2
device="$("${grub_probe}" --target=device "${memtest}")"
@@ -29,7 +27,7 @@ if [ -f "${memtest}" ]; then
${submenu_indentation}menuentry 'Memtest86+' {
EOF
- if [ "x${submenu_indentation}" != "x" ]; then
+ if [ -n "{submenu_indentation}" ]; then
prepare_grub_to_access_device "${device}" | grub_add_tab | grub_add_tab
else
prepare_grub_to_access_device "${device}" | grub_add_tab
@@ -42,7 +40,6 @@ EOF
fi
if [ -f "${memtestbsd}" ]; then
-
gettext_printf "Found memtest image: %s\n" "${memtestbsd}" >&2
device="$("${grub_probe}" --target=device "${memtestbsd}")"
@@ -51,7 +48,7 @@ if [ -f "${memtestbsd}" ]; then
${submenu_indentation}menuentry 'Memtest86+ (netbsd)' {
EOF
- if [ "x${submenu_indentation}" != "x" ]; then
+ if [ -n "${submenu_indentation}" ]; then
prepare_grub_to_access_device "${device}" | grub_add_tab | grub_add_tab
else
prepare_grub_to_access_device "${device}" | grub_add_tab
@@ -63,7 +60,7 @@ ${submenu_indentation}}
EOF
fi
-if [ "x${multiple_memtest}" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
+if [ "${multiple_memtest}" = "true" ] && [ "${GRUB_DISABLE_SUBMENU}" != "y" ]; then
cat <<EOF
}
EOF
next reply other threads:[~2017-03-14 23:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 23:54 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-19 12:59 [gentoo-commits] repo/gentoo:master commit in: sys-apps/memtest86+/files/ Ben Kohler
2019-11-24 0:44 Aaron Bauman
2018-06-26 15:05 Mike Gilbert
2018-06-15 7:02 Sergei Trofimovich
2017-03-14 23:37 Mike Frysinger
2016-11-26 0:32 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1489535667.8fe39c8d9fd69b55db808f93edb8c1cbee496f36.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox