Commit 119d1b14 authored by Maxime Perrotin's avatar Maxime Perrotin

Add mono prefix to asn1.exe call

parent de5a67f9
...@@ -5,7 +5,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ...@@ -5,7 +5,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Fetch and install latest ASN1SCC release # Fetch and install latest ASN1SCC release
mkdir -p ${PREFIX}/share/asn1scc/ || exit 1 mkdir -p ${PREFIX}/share/asn1scc/ || exit 1
cd ${PREFIX}/share/ || exit 1 cd ${PREFIX}/share/ || exit 1
VER=$(asn1.exe 2>&1 | grep '^Current' | awk '{print $NF}') ASN1SCC_BIN=$(which asn1.exe)
VER=$(mono $ASN1SCC_BIN 2>&1 | grep '^Current' | awk '{print $NF}')
if [ "${VER}" != "3.3.21" ] ; then if [ "${VER}" != "3.3.21" ] ; then
wget -q -O - https://github.com/ttsiodras/asn1scc/releases/download/3.3.21/asn1scc-bin-3.3.21.tar.bz2 \ wget -q -O - https://github.com/ttsiodras/asn1scc/releases/download/3.3.21/asn1scc-bin-3.3.21.tar.bz2 \
| tar jxvf - | tar jxvf -
......
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