File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,18 @@ variables:
2626before_script :
2727 # Setup trdl
2828 - |
29- TRDL_ROOT="${HOME}/.trdl"
30- trdl_target_version=$(curl -s https://tuf.trdl.dev/targets/channels/0/stable)
31- TRDL_BIN="${TRDL_ROOT}/releases/${trdl_target_version}/trdl"
32- if [[ ! -x "${TRDL_BIN}" ]]; then
33- mkdir -p "${TRDL_ROOT}/releases/${trdl_target_version}"
34- curl -sSLO "https://tuf.trdl.dev/targets/releases/${trdl_target_version}/linux-amd64/bin/trdl"
35- mv trdl "${TRDL_BIN}"
36- chmod +x "${TRDL_BIN}"
29+ export PATH=$PATH:~/bin
30+ if ! command -v trdl; then
31+ echo "🔧 trdl is not installed, installing it..."
32+
33+ trdl_target_version=$(curl -s https://tuf.trdl.dev/targets/channels/0/stable)
34+
35+ echo "🔍 Installing trdl version ${trdl_target_version} ..."
36+ curl -sSLO "https://tuf.trdl.dev/targets/releases/$trdl_target_version/linux-amd64/bin/trdl"
37+ install -D trdl ~/bin/trdl
38+ rm trdl
3739 fi
38- ln -sfn "releases/${trdl_target_version}" "${TRDL_ROOT}/current"
39- export PATH="${TRDL_ROOT}/current:${PATH}"
40+
4041
4142 # Setup werf
4243 - |
You can’t perform that action at this time.
0 commit comments