Commit 74fa61c7 authored by Sean's avatar Sean 🎨

Make prebuild POSIX compliant to work in alpine

parent eda6a123
#!/bin/bash
# Run a restore to be sure we have all the dlls on the system.
dotnet restore web > /dev/null
#!/bin/sh
# Find nuget's global directory
nugetRootPath=$(dotnet nuget locals global-packages -l | cut -d' ' -f4)
nugetRootPath="${nugetRootPath%?}"
# array of ${nameOfDep}|${pathToDllFolder}
packagesAndPaths=("System.Runtime.CompilerServices.Unsafe|4.6.0/lib/netstandard2.0")
# 'array' (space delimited) of ${nameOfDep}|${pathToDllFolder}
packagesAndPaths="System.Runtime.CompilerServices.Unsafe|4.6.0/lib/netstandard2.0"
mkdir -p lib
for i in "${packagesAndPaths[@]}"
do
echo "$packagesAndPaths" | tr ' ' '\n' | while read i; do
# all these vars split out for clarity
name=$(echo "$i" | cut -d'|' -f1)
path=$(echo "$i" | cut -d'|' -f2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment