Files
Aurora.3/tools/ci/install_spaceman_dmm.sh
3742231bc2 Major UT Overhaul (#16544)
* Removes old UT definition files (drone/travis)
* Adds concurrency definitions to the workflows
* Changes our workflows to be more in line with what /tg does
* Adds a workflow to build/commit TGUI
* Adds a workflow to build/commit changelogs

Add python version to dependencies.sh
Fix dme errors
Removes a bunch of not included files
Cache Opendream and add directory to check_grep.py

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
2023-06-27 16:44:16 +02:00

20 lines
480 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
source dependencies.sh
if [ ! -f ~/$1 ]; then
mkdir -p "$HOME/SpacemanDMM"
CACHEFILE="$HOME/SpacemanDMM/$1"
if ! [ -f "$CACHEFILE.version" ] || ! grep -Fxq "$SPACEMAN_DMM_VERSION" "$CACHEFILE.version"; then
wget -O "$CACHEFILE" "https://github.com/SpaceManiac/SpacemanDMM/releases/download/$SPACEMAN_DMM_VERSION/$1"
chmod +x "$CACHEFILE"
echo "$SPACEMAN_DMM_VERSION" >"$CACHEFILE.version"
fi
ln -s "$CACHEFILE" ~/$1
fi
~/$1 --version