X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FLocalFunctions.sh;h=493ce661f20b5418b40beae930de4815f2609df5;hb=e79d72630bd419d3223605aecbc3ca44360a30f6;hp=c84fca48db57af7d048171f090e27f80b3eff32a;hpb=3b873b40ab4f4cbfd9f951ef93819241d02f97ae;p=creaToolsTools.git diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index c84fca4..493ce66 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -82,6 +82,18 @@ function getDistribVersion { echo $OSVersion } +########################################### +function getDownloadCommand { + local DISTRIB=`getDistrib` + + if [ "$DISTRIB" == MacOS ] ; then downloadCommand=curl; + elif [ "$DISTRIB" == Fedora ] ; then downloadCommand='aria2c -x 16' + elif [ "$DISTRIB" == Ubuntu ] ; then downloadCommand=wget + else downloadCommand="VOID_EED" + fi + echo $downloadCommand +} + ########################################### function getncore { if [ `uname` == Darwin ] ; then # MacOS @@ -113,6 +125,7 @@ function getbashrc { # fi } + ########################################### function printconfig { echo