From e989e874c2d65b28aadfc9e0d4c80233b112fb81 Mon Sep 17 00:00:00 2001 From: Johannes Barre Date: Tue, 11 Jun 2024 17:41:06 +0200 Subject: [PATCH] Fix for gum 0.14. The tar.gz since 0.14.0 contains a directory called gum_{version}_{platform}_{arch}, so we need to move the files into the expected path. --- lib/utils.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils.bash b/lib/utils.bash index 87d59e7..753aff2 100755 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -79,6 +79,10 @@ install_version() { rm "$release_file.$ext" + if ls ${install_path}/bin/gum_${version}* > /dev/null 2>&1; then + mv `ls -d ${install_path}/bin/gum_${version}*`/* ${install_path}/bin/ + fi + local tool_cmd tool_cmd="gum" test -x "$install_path/bin/$tool_cmd" || fail "Expected $install_path/bin/$tool_cmd to be executable."