Skip to content

Commit bbc3322

Browse files
committed
Added resource file with bootstrap header (relates to #199)
1 parent 18f7c67 commit bbc3322

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

misc/boostrap_header.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function _in_path() { command -v "$1" >/dev/null 2>&1; }
2+
_in_path kscript && echo "kscript is already installed at $(which kscript)" 1>&2 || {
3+
function echo_and_eval() { echo "$ $@" 1>&2; eval "$@" 1>&2; }
4+
_in_path sdk || {
5+
curl "https://get.sdkman.io" | bash 1>&2 && \
6+
echo_and_eval source "$"SDKMAN_DIR/bin/sdkman-init.sh
7+
}
8+
_in_path kotlin || echo_and_eval sdk install kotlin
9+
_in_path gradle || echo_and_eval sdk install gradle
10+
echo_and_eval sdk install kscript
11+
}

0 commit comments

Comments
 (0)