From e74480ccccdc2a06936ae94f75466ca4b35589e6 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 27 Sep 2018 21:51:33 +0400 Subject: [PATCH] =?UTF-8?q?dk:=20action=20build=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dk b/dk index c69c817..632786f 100755 --- a/dk +++ b/dk @@ -247,6 +247,9 @@ parse_args "$@"; set -- "${args[@]}" [ -n "$chdir" ] && { cd "$chdir" || die; } +# construire par défaut +[ $# -eq 0 ] && set -- build + while [ $# -gt 0 ]; do [ "$1" == -- ] && { shift; continue; } cmd="$1"; shift