Skip to content

Commit

Permalink
fix: cut usage in exec exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
jthegedus authored Jan 7, 2021
1 parent f176e83 commit 368d30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ install_version() {

# TODO: Asert <YOUR TOOL> executable exists.
local tool_cmd
tool_cmd="$(echo "<TOOL CHECK>" | cut -d' ' -f2-)"
tool_cmd="$(echo "<TOOL CHECK>" | cut -d' ' -f1)"
test -x "$install_path/bin/$tool_cmd" || fail "Expected $install_path/bin/$tool_cmd to be executable."

echo "<YOUR TOOL> $version installation was successful!"
Expand Down

0 comments on commit 368d30a

Please sign in to comment.