From dc94b5c0cf4d8d98eae9fe69d1f5d1b526a12f6e Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 23 May 2023 15:11:54 +0400 Subject: [PATCH] dkbuild: bug avec les chemins --- dkbuild | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/dkbuild b/dkbuild index 3df7a11..f071ec4 100755 --- a/dkbuild +++ b/dkbuild @@ -2213,7 +2213,10 @@ fi cd "$destdir" || die [ -n "$action" ] || action=install - [ "$action" == none ] && return + if [ "$action" == none ]; then + cd "$cwd" + return + fi local build="${DEFAULTS[build_build]-1}" local args @@ -2267,7 +2270,10 @@ fi shift done - [ -n "$build" ] || return + if [ -z "$build" ]; then + cd "$cwd" + return + fi if [ "$php" != force -a "$php" != any ]; then # Si php n'est pas disponible dans le PATH, forcer l'utilisation de @@ -2503,7 +2509,10 @@ cd "$projdir" cd "$destdir" || die [ -n "$action" ] || action=package - [ "$action" == none ] && return + if [ "$action" == none ]; then + cd "$cwd" + return + fi local build="${DEFAULTS[build_build]-1}" local args="${DEFAULTS[mvn_args]}" @@ -2549,7 +2558,10 @@ cd "$projdir" shift done - [ -n "$build" ] || return + if [ -z "$build" ]; then + cd "$cwd" + return + fi local version case "$action" in