Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fixed install mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TonioF committed May 17, 2022
1 parent 3eb5377 commit 9d7ba51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/install_xcube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ PACKAGE=$1;
PACKAGE_VERSION=$2;
INSTALL_MODE=$3

echo "############################################"
echo "INSTALLING ${PACKAGE}-${PACKAGE_VERSION}"
echo "############################################"
echo "###########################################################"
echo "INSTALLING ${PACKAGE}-${PACKAGE_VERSION} from $INSTALL_MODE"
echo "###########################################################"

if [[ INSTALL_MODE == "branch" ]]; then
if [[ $INSTALL_MODE == "branch" ]]; then
git clone https://github.com/dcs4cop/"${PACKAGE}"
cd "${PACKAGE}" || exit
git checkout "${PACKAGE_VERSION}"
Expand All @@ -17,7 +17,7 @@ if [[ INSTALL_MODE == "branch" ]]; then
source activate base && mamba env update -n base
source activate base && pip install .
cd .. && rm -rf "${PACKAGE}"
elif [[ INSTALL_MODE == "release" ]]; then
elif [[ $INSTALL_MODE == "release" ]]; then
# Receive version number if PACKAGE_VERSION is latest
if [[ $PACKAGE_VERSION == "latest" ]]; then
PACKAGE_VERSION=$(curl -sL https://api.github.com/repos/dcs4cop/"${PACKAGE}"/releases/latest | jq -r '.name')
Expand Down

0 comments on commit 9d7ba51

Please sign in to comment.