Skip to content

Commit 51db635

Browse files
committed
fix bug in file_exists_in_folder
1 parent 4fdab1a commit 51db635

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

functions_library.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ file_exists_in_folder(){
153153
# can only be run using bash, not sh
154154
# first argument: file to look for
155155
# second argument: folder path
156-
pushd $2
157-
status = file_exists
158-
popd
156+
pushd $2 > /dev/null
157+
status = file_exists $1
158+
popd > /dev/null
159159
return status
160160
}
161161

0 commit comments

Comments
 (0)