Skip to content

Commit

Permalink
fix for install test and add some better readability for the help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
olofvndrhr committed Jul 23, 2022
1 parent a04f209 commit 3bd63c0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
10 changes: 6 additions & 4 deletions bin/help.deps
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ plugin_dir=$(dirname "$(dirname "${current_script_path}")")
source "${plugin_dir}/lib/utils.bash"

cat << EOF
bash
curl
tar
gzip
Dependencies:
- bash
- curl
- tar
- gzip
EOF
8 changes: 5 additions & 3 deletions bin/help.links
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ plugin_dir=$(dirname "$(dirname "${current_script_path}")")
source "${plugin_dir}/lib/utils.bash"

cat << EOF
asdf plugin repository: https://github.com/olofvndrhr/asdf-just
tool repository: https://github.com/casey/just
tool website: https://just.systems/
Links:
- asdf plugin repository: https://github.com/olofvndrhr/asdf-just
- tool repository: https://github.com/casey/just
- tool website: https://just.systems/
EOF
10 changes: 9 additions & 1 deletion bin/help.overview
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@ This readme is also available as a book.
(中文文档在 这里, 快看过来!)
Commands, called recipes, are stored in a file called justfile with syntax inspired by make:
Commands, called recipes, are stored in a file called justfile with syntax inspired by make.
You can then run them with just RECIPE:
$ just test-all
cc *.c -o main
./test --all
Yay, all your tests passed!
EOF
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function install_version() {
if [[ ! -x "${install_path}/${tool_cmd}" ]]; then
fail "Expected ${install_path}/${tool_cmd} to be executable."
fi
if ! "${tool_cmd}" --version; then
if ! "${install_path}/${tool_cmd}" --version; then
fail "'${tool_cmd} --version' failed."
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/shellcheck.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

exec shellcheck -s bash -x \
bin/* -P lib/
bin/* -P lib/

0 comments on commit 3bd63c0

Please sign in to comment.