mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-29 18:18:18 +01:00
df8cea1443
* docker file and version update * don't go further up yet * Update Dockerfile * Update Dockerfile * unifi dependencies * all features for us
20 lines
480 B
Bash
Executable File
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
|