Skip to content

Commit

Permalink
fixed minor mamba command issue
Browse files Browse the repository at this point in the history
  • Loading branch information
msouff authored Jan 17, 2024
1 parent 455f665 commit 046c015
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
1 change: 0 additions & 1 deletion tethysapp/app_store/model.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
print("dam_inventory installed in dev mode")
10 changes: 7 additions & 3 deletions tethysapp/app_store/scripts/conda_install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

echo "Running Mamba Install"
# mamba install -y --freeze-installed -q -c $2 -c tethysplatform -c conda-forge $1
micromamba install -y --freeze-installed -q -c $2 -c tethysplatform -c conda-forge $1
if micromamba; then
MAMBA_COMMAND=micromamba
else
MAMBA_COMMAND=mamba

echo "Mamba Install Complete"
$MAMBA_COMMAND install -y --freeze-installed -q -c $2 -c tethysplatform -c conda-forge $1

echo "Mamba Install Complete"
7 changes: 6 additions & 1 deletion tethysapp/app_store/scripts/mamba_uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

echo "Running Mamba remove"
micromamba remove -y --force $1
if micromamba; then
MAMBA_COMMAND=micromamba
else
MAMBA_COMMAND=mamba

$MAMBA_COMMAND remove -y --force $1
echo "Mamba Remove Complete"
7 changes: 6 additions & 1 deletion tethysapp/app_store/scripts/mamba_update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

echo "Running Mamba Update"
micromamba install -y -q -c $2 -c tethysplatform -c conda-forge $1
if micromamba; then
MAMBA_COMMAND=micromamba
else
MAMBA_COMMAND=mamba

$MAMBA_COMMAND install -y -q -c $2 -c tethysplatform -c conda-forge $1
echo "Mamba Update Complete"

0 comments on commit 046c015

Please sign in to comment.