shlib.sh: avoid using basename on $0
commita22861528f2eb70a6ebd1dff4dcd60da93b5c587
authorKyle J. McKay <mackyle@gmail.com>
Fri, 22 Nov 2019 16:07:50 +0000 (22 09:07 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 22 Nov 2019 16:07:50 +0000 (22 09:07 -0700)
tree7d2d8978918eadd0089d356a30f4a08b7b161726
parentdbc724c618c6bd5441162cf7eb2e0e04005da98e
shlib.sh: avoid using basename on $0

It's not necessary and when testing the script and "$0" contains
something odd, basename may get unhappy.

Just use the standard ${0##*/} instead which avoids an extra
process and doesn't have the problem.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh