File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+
4
+ if [ $# = 1 ]; then
5
+ DIR=" $1 "
6
+ else
7
+ DIR=" $HOME /.bin"
8
+ fi
9
+ mkdir -p " $DIR "
10
+
11
+ export PATH=" $DIR :$PATH "
12
+
13
+ COURSIER_VERSION=" 2.0.0-RC6-7"
14
+ MILL_VERSION=" 0.6.0"
15
+
16
+ if [ ! -x " $DIR /cs-$COURSIER_VERSION " ]; then
17
+ curl -Lo " $DIR /cs-$COURSIER_VERSION " \
18
+ " https://github.com/coursier/coursier/releases/download/v$COURSIER_VERSION /cs-x86_64-pc-linux"
19
+ chmod +x " $DIR /cs-$COURSIER_VERSION "
20
+ rm -f " $DIR /cs"
21
+ ( cd " $DIR " && ln -s " cs-$COURSIER_VERSION " cs )
22
+ fi
23
+
24
+ " $DIR /cs" install --dir " $DIR " \
25
+ " mill:$MILL_VERSION " \
26
+ sbt-launcher
27
+
28
+ " $DIR /cs" bootstrap -o " $DIR /amm" \
29
+ com.lihaoyi:ammonite_2.13.2:2.1.4 \
30
+ -M ammonite.Main
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes
4
+
5
+ echo " allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
6
+ echo " pinentry-mode loopback" >> ~/.gnupg/gpg.conf
7
+
8
+ gpg-connect-agent reloadagent /bye
You can’t perform that action at this time.
0 commit comments