scripts: rstrip.sh: allow rpath with sole $ORIGIN token
authorYorkie Liu <yazhong.liu@rokid.com>
Mon, 10 Dec 2018 09:35:32 +0000 (17:35 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 19 Dec 2018 14:36:05 +0000 (15:36 +0100)
commit8b2efc87dbf2a194c7d8afccf36a3f9f73854170
treee7d99844921fbdbd39b627edbdfe27dc0dc5ffd1
parent386803a006edafd54cef20b4b99b033b1b52cf5c
scripts: rstrip.sh: allow rpath with sole $ORIGIN token

2efe776 introduces rpath checks with the commit message:

> Remove all rpath entries which do not point to a location below /lib or
> /usr/lib and which do not begin with '$ORIGIN'.

However the implementation failed to support rpath entries with only the
'$ORIGIN' token and no trailing slash, so allow these as well.

Signed-off-by: Yorkie Liu <yazhong.liu@rokid.com>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
scripts/rstrip.sh