mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Use path:is-dir in the example for $pwd.
This commit is contained in:
parent
7c52dd9545
commit
629be7e297
|
@ -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
|
||||
# }
|
||||
# }
|
||||
|
|
Loading…
Reference in New Issue
Block a user