Skip to content

Commit 8c7ccb2

Browse files
more patches to install
1 parent b330bed commit 8c7ccb2

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/install-mdbook

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,20 @@ help() {
2929
HELP
3030
}
3131

32-
target="~/.local/bin"
33-
case "${1}" in
34-
-h|--help)
35-
help
36-
exit 0
37-
;;
38-
*)
39-
target="${1}"
40-
;;
41-
esac
42-
43-
target="${1}"
32+
target="${HOME}/.local/bin"
33+
while [ "${#}" -gt 0 ]; do
34+
case "${1}" in
35+
-h|--help)
36+
help
37+
exit 0
38+
;;
39+
*)
40+
target="${1}"
41+
;;
42+
esac
43+
shift
44+
done
45+
4446
mkdir -p "${target}"
4547
download \
4648
https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz \

0 commit comments

Comments
 (0)