Skip to content
Snippets Groups Projects
Verified Commit aebeb114 authored by David Beniamine's avatar David Beniamine
Browse files

Fix get dolibarr url

parent 68b110b7
Branches
No related tags found
No related merge requests found
......@@ -12,11 +12,15 @@ then
else
num=$1
fi
url_ver=$(grep "[^\d\.]$num\..*" $$-list | \
sed -e 's/\([0-9]*\.[0-9]*\.[0-9]*\)\(.*\)$/\1\2 \1/' $$-list | \
sort -k 3 -rn | head -n 1 \
| sed 's/.*"\(https.*\)"/\1/')
url=$(echo $url_ver | cut -d ' ' -f 1)
ver=$(echo $url_ver | cut -d ' ' -f 2)
url=`grep "[^\d\.]$num\..*" $$-list | sort -r | head -n 1 \
| sed 's/.*"\(https.*\)"/\1/'`
rm $$-list
ver=`echo $url | sed 's@.*/\([0-9\.]*\)/download.*@\1@'`
# Fix bad download URL
url=`echo $url | sed "s@/download@/dolibarr_$ver-4_all.deb/download@"`
echo $url $ver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment