diff --git a/test/asdf_elvish.bats b/test/asdf_elvish.bats index ee46e368..1757c1f4 100644 --- a/test/asdf_elvish.bats +++ b/test/asdf_elvish.bats @@ -83,7 +83,7 @@ cleaned_path() { echo \$E:PATH ") [ "$?" -eq 0 ] - output=$(echo $PATH | tr ':' '\n' | grep "asdf" | sort | uniq -d) + output=$(echo $result | tr ':' '\n' | grep "asdf" | sort | uniq -d) [ "$output" = "" ] } diff --git a/test/asdf_fish.bats b/test/asdf_fish.bats index 190cc212..0d94517d 100644 --- a/test/asdf_fish.bats +++ b/test/asdf_fish.bats @@ -51,7 +51,7 @@ cleaned_path() { echo \$PATH ") [ "$?" -eq 0 ] - output=$(echo $PATH | tr ':' '\n' | grep "asdf" | sort | uniq -d) + output=$(echo $result | tr ' ' '\n' | grep "asdf" | sort | uniq -d) [ "$output" = "" ] } diff --git a/test/asdf_sh.bats b/test/asdf_sh.bats index 9e06e154..0c1785fe 100644 --- a/test/asdf_sh.bats +++ b/test/asdf_sh.bats @@ -68,7 +68,7 @@ cleaned_path() { echo $PATH ) - output=$(echo $PATH | tr ':' '\n' | grep "asdf" | sort | uniq -d) + output=$(echo $result | tr ':' '\n' | grep "asdf" | sort | uniq -d) [ "$?" -eq 0 ] [ "$output" = "" ] }