Skip to content

Commit 8d1e802

Browse files
committed
test: Use ${PWD} instead of $(pwd)
1 parent 5fc418e commit 8d1e802

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/plugins/base.plugin.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ load ../../plugins/available/base.plugin
4040
mkcd "${dir_name}"
4141
assert_success
4242
assert_dir_exist "${BASH_IT_ROOT}/${dir_name}"
43-
assert_equal $(pwd) "${BASH_IT_ROOT}/${dir_name}"
43+
assert_equal "${PWD}" "${BASH_IT_ROOT}/${dir_name}"
4444
}
4545

4646
@test 'plugins base: lsgrep()' {

test/run

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git submodule init && git submodule update
66

77
if [ -z "${BASH_IT}" ]; then
88
declare BASH_IT
9-
BASH_IT=$(cd ${test_directory} && dirname "$(pwd)")
9+
BASH_IT="$(cd "${test_directory}" && dirname "${PWD}")"
1010
export BASH_IT
1111
fi
1212

0 commit comments

Comments
 (0)