Skip to content

Commit

Permalink
use version check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvander committed Feb 13, 2024
1 parent d1bf1f3 commit 63c3d53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

GH_REPO="https://github.com/apple/pkl"
TOOL_NAME="pkl"
TOOL_TEST="pkl --help"
TOOL_TEST="pkl -v"

fail() {
echo -e "asdf-$TOOL_NAME: $*"
Expand Down Expand Up @@ -84,7 +84,6 @@ install_version() {
mkdir -p "$install_path"
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"

# TODO: Assert pkl executable exists.
local tool_cmd
tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)"
test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable."
Expand Down

0 comments on commit 63c3d53

Please sign in to comment.