Replace basename/dirname with shell string processing (thanks, Hedayat
Vatankhah; part of #694668).
cache_progname() {
case $progname in
'')
- progname="$(basename "$0")"
+ progname="${0##*/}"
;;
esac
}
options (thanks, Hedayat Vatankhah; closes: #674561).
* Disable debugging if OS_PROBER_DISABLE_DEBUG is set (thanks, Hedayat
Vatankhah; closes: #698598).
+ * Replace basename/dirname with shell string processing (thanks, Hedayat
+ Vatankhah; part of #694668).
-- Colin Watson <cjwatson@debian.org> Sat, 31 Dec 2016 17:11:49 +0000
fi
if [ -z "$title" ]; then
- title="$(basename "$kernel")"
+ title="${kernel##*/}"
fi
if [ "$read_only" ]; then
parameters="ro $parameters"
elilo=`find $1 -name "elilo.efi"`
if [ -n "$elilo" ]; then
- bdir=`dirname $elilo`
- bdir=`basename $bdir`
+ bdir="${elilo%/*}"
+ bdir="${elilo##*/}"
long="ELILO Boot Manager"
short="ELILO"
path=${bdir}/elilo.efi