Skip to content

Commit c77ee57

Browse files
author
Kevin Lundberg
committed
Fix for asdf plugin-test when installed with brew, and a minor logic fix to a warning
1 parent f80b66c commit c77ee57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/commands/plugin-test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ plugin_test_command() {
3939
fi
4040

4141
TEST_DIR=$(mktemp -dt asdf.XXXX)
42-
git clone "$ASDF_DIR/.git" "$TEST_DIR"
42+
cp -R "$ASDF_DIR/" "$TEST_DIR"
4343

4444
plugin_test() {
4545
export ASDF_DIR=$TEST_DIR
@@ -72,8 +72,8 @@ plugin_test_command() {
7272
fail_test "$plugin_name/bin/list-all does not set GitHub Authorization token"
7373
fi
7474

75-
# test for most common token names we have on plugins
76-
if [ -z "$OAUTH_TOKEN" ] || [ -z "$GITHUB_API_TOKEN" ] ; then
75+
# test for most common token names we have on plugins. If both are empty show this warning
76+
if [ -z "$OAUTH_TOKEN" ] && [ -z "$GITHUB_API_TOKEN" ] ; then
7777
echo "$plugin_name/bin/list-all is using GitHub API, just be sure you provide an API Authorization token"
7878
echo "via your travis settings. This is the current rate_limit:"
7979
echo

0 commit comments

Comments
 (0)