Files
OpenRA/thirdparty/noget.sh
2015-06-06 16:16:30 +02:00

8 lines
280 B
Bash
Executable File

#!/bin/sh
# fallback without dependency resolution if nuget is not present on the system
archive="$1"
version="$2"
curl -o "$archive.zip" -Ls https://nuget.org/api/v2/package/"$archive"/"$version"
mkdir -p "$archive"
unzip -o -qq "$archive.zip" -d "$archive" && rm "$archive.zip"