Skip to content

Commit

Permalink
update: doing ls before trying source
Browse files Browse the repository at this point in the history
  • Loading branch information
edvardsanta committed Sep 21, 2023
1 parent e540d19 commit d06bfe5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/test_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ setup_asdf_dir() {
ASDF_BIN="$(dirname "$BATS_TEST_DIRNAME")/bin"

# it is necessary to execute shell command
cp -r .. "$ASDF_DIR"

cp -r .. "$ASDF_DIR/"
ls -a "$ASDF_DIR"
if source "$ASDF_DIR/asdf.sh"; then
echo "Sourced asdf.sh successfully."
else
echo "Error: Unable to source asdf.sh. Please report this fail."
exit 1
echo "Sourced asdf.sh successfully."
else
echo "Error: Unable to source asdf.sh. Please report this fail."
exit 1
fi

ls -a "$ASDF_DIR"
# shellcheck disable=SC2031
PATH="$ASDF_BIN:$ASDF_DIR/shims:$PATH"
}
Expand Down

0 comments on commit d06bfe5

Please sign in to comment.