mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 23:21:20 +00:00
* Linter diagnostics + bans non-var relative pathing * Enable DreamChecker Annotations * make it executable * update hashFiles * oops * tries to fix it... again * trying again * path * repath * fix perms * fixes weird capitalisation issue
19 lines
486 B
Bash
Executable File
19 lines
486 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
source _build_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 |