From 629be7e29737bac68fe7f5bbea7d0221f9c20677 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Fri, 30 Dec 2022 18:36:31 +0000 Subject: [PATCH] Use path:is-dir in the example for $pwd. --- pkg/eval/builtin_ns.d.elv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/eval/builtin_ns.d.elv b/pkg/eval/builtin_ns.d.elv index a3adff11..529b275f 100644 --- a/pkg/eval/builtin_ns.d.elv +++ b/pkg/eval/builtin_ns.d.elv @@ -43,9 +43,10 @@ var pid # # ```elvish # ## Updates all git repositories +# use path # for x [*/] { # tmp pwd = $x -# if ?(test -d .git) { +# if (path:is-dir .git) { # git pull # } # }