]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
kheaders: remove the last bashism to allow sh to run it
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 8 Oct 2019 12:05:55 +0000 (21:05 +0900)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 16 Sep 2020 09:15:01 +0000 (05:15 -0400)
commit29879e300aeb83f836bffda4512d15d9adb80402
tree84d41c8d1ea1c7e1c03119ef2af89bfd3996258c
parentbae377225586af4e565a665b2ea91714b7646e15
kheaders: remove the last bashism to allow sh to run it

BugLink: https://bugs.launchpad.net/bugs/1895174
commit 1463f74f492eea7191f0178e01f3d38371a48210 upstream.

'pushd' ... 'popd' is the last bash-specific code in this script.
One way to avoid it is to run the code in a sub-shell.

With that addressed, you can run this script with sh.

I replaced $(BASH) with $(CONFIG_SHELL), and I changed the hashbang
to #!/bin/sh.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
kernel/Makefile
kernel/gen_kheaders.sh