From ebcafcecdcd1db44fbf4b6ea1a6c84b94571d8d5 Mon Sep 17 00:00:00 2001 From: Victor LEFEBVRE Date: Wed, 11 Sep 2024 17:52:40 +0200 Subject: [PATCH] make plugin-test work on alpine linux 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 --- lib/commands/command-plugin-test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/command-plugin-test.bash b/lib/commands/command-plugin-test.bash index 0cfa680ed..c12af6c17 100644 --- a/lib/commands/command-plugin-test.bash +++ b/lib/commands/command-plugin-test.bash @@ -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"