Skip to content

Commit

Permalink
make plugin-test work on alpine linux
Browse files Browse the repository at this point in the history
the alpine (busbox) version of `mktemp` expects templates to end with exactly 6 Xs whereas GNU want at least 3.

Bumping to 6 Xs allows alpine users to run the plugin-test command without installing the `coreutils` package first
  • Loading branch information
vic1707 authored Sep 11, 2024
1 parent f00f759 commit ebcafce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/command-plugin-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ plugin_test_command() {
set -- "${SHELL:-sh}" -c "$1"
fi

TEST_DIR=$(mktemp -dt asdf.XXXX)
TEST_DIR=$(mktemp -dt asdf.XXXXXX)
cp -R "$(asdf_dir)/bin" "$TEST_DIR"
cp -R "$(asdf_dir)/lib" "$TEST_DIR"
cp "$(asdf_dir)/asdf.sh" "$TEST_DIR"
Expand Down

0 comments on commit ebcafce

Please sign in to comment.