From: Harald Hoyer Date: Thu, 3 Sep 2015 10:31:34 +0000 (+0200) Subject: dracut-functions.sh: fixed dracutbasedir, when sourced directly X-Git-Tag: 044~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea877ac6cc3df38d22728437b8a70bedee558f6a;p=thirdparty%2Fdracut.git dracut-functions.sh: fixed dracutbasedir, when sourced directly --- diff --git a/dracut-functions.sh b/dracut-functions.sh index d559903f4..3982fc840 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -96,7 +96,7 @@ find_binary() { if ! [[ $dracutbasedir ]]; then dracutbasedir=${BASH_SOURCE[0]%/*} - [[ $dracutbasedir = "dracut-functions" ]] && dracutbasedir="." + [[ $dracutbasedir = dracut-functions* ]] && dracutbasedir="." [[ $dracutbasedir ]] || dracutbasedir="." dracutbasedir="$(readlink -f $dracutbasedir)" fi