bug
This commit is contained in:
parent
e7745c2dd4
commit
c2cfd7739a
3
dkbuild
3
dkbuild
|
@ -1078,12 +1078,13 @@ function reset_functions() {
|
||||||
function include() {
|
function include() {
|
||||||
edebug "include $(qvals "$@")"
|
edebug "include $(qvals "$@")"
|
||||||
|
|
||||||
local file="$1"
|
local file="$1" cwd="$(pwd)"
|
||||||
[ -d "$file" ] && file="$file/dkbuild"
|
[ -d "$file" ] && file="$file/dkbuild"
|
||||||
[ -f "$file" ] || die "$file: fichier introuvable"
|
[ -f "$file" ] || die "$file: fichier introuvable"
|
||||||
setx file=abspath "$file"
|
setx file=abspath "$file"
|
||||||
cd "$(dirname "$file")"
|
cd "$(dirname "$file")"
|
||||||
source "$file"
|
source "$file"
|
||||||
|
cd "$cwd"
|
||||||
}
|
}
|
||||||
function machine() {
|
function machine() {
|
||||||
local machine version
|
local machine version
|
||||||
|
|
Loading…
Reference in New Issue