scripts: ipkg-build: simplify uid/gid resolving
authorJo-Philipp Wich <jo@mein.io>
Mon, 14 Sep 2020 14:57:46 +0000 (16:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 14 Sep 2020 15:11:04 +0000 (17:11 +0200)
commit4038c031cbc156d361e80f73dbd88f83b13a4057
tree073f0bbe8765cb90a72674990a40e530288dbc7e
parent7a29e24dbb6643018195f069d9a7249550dc4b47
scripts: ipkg-build: simplify uid/gid resolving

Use the prepared .packageusergroup file to lookup user and group names
when processing the passed file mode.

Also replace the various subshell/cut invocations with a sequence of
standard variable interpolations which fixes paths with embedded colons
as a side-effect.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
scripts/ipkg-build