X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaToolsTools.git;a=blobdiff_plain;f=Linux%2Fscripts%2FLocalFunctions.sh;h=9075cf2673dcec9539944b273c2ac46630bfa0c6;hp=c84fca48db57af7d048171f090e27f80b3eff32a;hb=226677f5b7419d7bfdf7914b338af561d675605d;hpb=b1c33be17e0eb4a66d0e4581a3f5de1171bb54da diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index c84fca4..9075cf2 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=aria -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