From c8dddb81228e979ffa188013f1a6eb9ed3a99911 Mon Sep 17 00:00:00 2001 From: MarvinDo Date: Sun, 24 Nov 2024 16:26:45 +0100 Subject: [PATCH] fixed some bugs in js_libs installation scripts --- tools/script/install_bootstrap.sh | 14 +++++++------- tools/script/install_datatables.sh | 8 ++++---- tools/script/install_igv_js.sh | 6 +++--- tools/script/install_jquery.sh | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tools/script/install_bootstrap.sh b/tools/script/install_bootstrap.sh index 483ed2c0..2132f589 100755 --- a/tools/script/install_bootstrap.sh +++ b/tools/script/install_bootstrap.sh @@ -31,18 +31,18 @@ then fi # Begin script in case all parameters are correct -echo "Setting up python $version in $basedir/$foldername..." +echo "Setting up bootstrap $version in $basedir/$foldername..." -mkdir -p $path +mkdir -p $basedir -cd $path +cd $basedir -wget -q https://github.com/twbs/bootstrap/releases/download/v$bsversion/bootstrap-$bsversion-dist.zip -unzip bootstrap-$bsversion-dist.zip -mv bootstrap-$bsversion-dist $foldername -rm bootstrap-$bsversion-dist.zip +wget -q https://github.com/twbs/bootstrap/releases/download/v$version/bootstrap-$version-dist.zip +unzip bootstrap-$version-dist.zip +mv bootstrap-$version-dist $foldername +rm bootstrap-$version-dist.zip diff --git a/tools/script/install_datatables.sh b/tools/script/install_datatables.sh index 061bfba6..d08ab5e1 100755 --- a/tools/script/install_datatables.sh +++ b/tools/script/install_datatables.sh @@ -31,15 +31,15 @@ then fi # Begin script in case all parameters are correct -echo "Setting up python $version in $basedir/$foldername..." +echo "Setting up datatables $version in $basedir/$foldername..." -path=$path/$foldername +path=$basedir/$foldername mkdir -p $path cd $path -wget -q https://cdn.datatables.net/$bsversion/js/jquery.dataTables.min.js -wget -q https://cdn.datatables.net/$bsversion/css/jquery.dataTables.min.css +wget -q https://cdn.datatables.net/$version/js/jquery.dataTables.min.js +wget -q https://cdn.datatables.net/$version/css/jquery.dataTables.min.css diff --git a/tools/script/install_igv_js.sh b/tools/script/install_igv_js.sh index 0b4a1727..3a237b0d 100755 --- a/tools/script/install_igv_js.sh +++ b/tools/script/install_igv_js.sh @@ -31,15 +31,15 @@ then fi # Begin script in case all parameters are correct -echo "Setting up python $version in $basedir/$foldername..." +echo "Setting up igv js $version in $basedir/$foldername..." -mkdir -p $path/$foldername +mkdir -p $basedir/$foldername -cd $path/$foldername +cd $basedir/$foldername # official release #wget -q https://cdn.jsdelivr.net/npm/igv@$version/dist/igv.min.js diff --git a/tools/script/install_jquery.sh b/tools/script/install_jquery.sh index 80fda6c5..38e7540f 100755 --- a/tools/script/install_jquery.sh +++ b/tools/script/install_jquery.sh @@ -31,14 +31,14 @@ then fi # Begin script in case all parameters are correct -echo "Setting up python $version in $basedir/$foldername..." +echo "Setting up jquery $version in $basedir/$foldername..." -mkdir -p $path/$foldername +mkdir -p $basedir/$foldername -cd $path/$foldername +cd $basedir/$foldername wget -q https://code.jquery.com/jquery-$version.min.js