]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/LocalFunctions.sh
#2493 creaToolsTools Feature New Normal - Prepare and Install binary CreaTools...
[creaToolsTools.git] / Linux / scripts / LocalFunctions.sh
index c84fca48db57af7d048171f090e27f80b3eff32a..9075cf2673dcec9539944b273c2ac46630bfa0c6 100644 (file)
@@ -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