1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

shutils: Remove shebang

Since shutils should be run using busybox shell anyway, remove the
shebang.
This commit is contained in:
Douglas Raillard 2022-05-23 14:28:11 +01:00 committed by Marc Bonnici
parent 7853d2c85c
commit f5cfcafb08
2 changed files with 0 additions and 6 deletions

View File

@ -1,5 +1,3 @@
#!__DEVLIB_SHELL__
CMD=$1
shift

View File

@ -1202,14 +1202,10 @@ fi
shutils_ifile = os.path.join(PACKAGE_BIN_DIRECTORY, 'scripts', 'shutils.in')
tmp_dir = tempfile.mkdtemp()
shutils_ofile = os.path.join(tmp_dir, 'shutils')
shell_path = '/bin/sh'
if self.os == 'android':
shell_path = '/system/bin/sh'
with open(shutils_ifile) as fh:
lines = fh.readlines()
with open(shutils_ofile, 'w') as ofile:
for line in lines:
line = line.replace("__DEVLIB_SHELL__", shell_path)
line = line.replace("__DEVLIB_BUSYBOX__", self.busybox)
ofile.write(line)
self._shutils = self.install(shutils_ofile)