commit:     17e112fcedaa5bd5f5c5a8e573bd3fe8dc08879d
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  2 12:30:18 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Oct  2 12:30:18 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=17e112fc

gen_cmdline.sh: parse_cmdline(): Fix --strip argument parsing

Closes: https://bugs.gentoo.org/696056
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_cmdline.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen_cmdline.sh b/gen_cmdline.sh
index 825b80c..fa8a7c3 100755
--- a/gen_cmdline.sh
+++ b/gen_cmdline.sh
@@ -805,7 +805,7 @@ parse_cmdline() {
                        print_info 3 "CMD_NICE: ${CMD_NICE}"
                        ;;
                --strip=*)
-                       CMD_STRIP_TYPE=$(parse_opt "$*")
+                       CMD_STRIP_TYPE="${*#*=}"
                        print_info 3 "CMD_STRIP_TYPE: ${CMD_STRIP_TYPE}"
                        ;;
                --no-strip)

Reply via email to