From 90519e442e61d38ea2f13d1e580ff9007ecd2960 Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Sun, 10 May 2026 23:42:49 +0200 Subject: [PATCH] minimal/do: Avoid passing a null arg to `cd` Otherwise Bash complains and returns a non-zero status. --- minimal/do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimal/do b/minimal/do index 557c433..7c165c8 100755 --- a/minimal/do +++ b/minimal/do @@ -355,7 +355,7 @@ _do() fi target=$PWD/$target tmp=$PWD/$tmp - cd "$dodir" || return 99 + cd "${dodir:-.}" || return 99 target=$(_relpath "$target" "$PWD") || return 98 tmp=$(_relpath "$tmp" "$PWD") || return 97 base=${target%$ext}