Files
VOREStation/tools/ci/install_spaceman_dmm.sh
T
Kashargul df8cea1443 docker file and version update (#16761)
* docker file and version update

* don't go further up yet

* Update Dockerfile

* Update Dockerfile

* unifi dependencies

* all features for us
2024-12-28 20:32:27 +10: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