Skip to content

Commit 4a2a0fe

Browse files
committed
Use readdir() instead of eachline(ls -A) for portability
1 parent 9ef9626 commit 4a2a0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/gitutils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function verify_work(d::Dict)
7474
end
7575
end
7676
# check for anything that's not in d
77-
for line in eachline(`ls -A`)
77+
for line in readdir()
7878
name = chomp(line)
7979
@test name == ".git" || haskey(d,name)
8080
end
@@ -93,7 +93,7 @@ function git_setup(h::Dict, i::Dict, w::Dict, parents::AbstractString...)
9393
work = mktree(w)
9494

9595
# clear the repo
96-
for line in eachline(`ls -A`)
96+
for line in readdir()
9797
name = chomp(line)
9898
name == ".git" || rm(name, recursive=true)
9999
end

0 commit comments

Comments
 (0)