Skip to content

Commit

Permalink
#97: fix syntax in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 6, 2024
1 parent ca054b1 commit 6eda52b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ jobs:
- name: Reload environment variables
run: |
if [ -f ~/.zshrc ]; then . ~/.zshrc fi
if [ -f ~/.profile ]; then . ~/.profile fi
if [ -f ~/.bashrc ]; then . ~/.bashrc fi
if [ -f ~/.zshrc ]; then . ~/.zshrc; fi
if [ -f ~/.profile ]; then . ~/.profile; fi
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
which conda
conda --version
conda env list
Expand Down
12 changes: 3 additions & 9 deletions ci/setup_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@ rm -rf ~/miniconda.sh

$CONDA_PATH/bin/conda init bash
$CONDA_PATH/bin/conda init zsh
if [ -f ~/.zshrc ]; then
. ~/.zshrc
fi
if [ -f ~/.profile ]; then
. ~/.profile
fi
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
if [ -f ~/.zshrc ]; then . ~/.zshrc; fi
if [ -f ~/.profile ]; then . ~/.profile; fi
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

echo "Conda path: $(which conda)"
echo "Conda version: $(conda --version)"
Expand Down

0 comments on commit 6eda52b

Please sign in to comment.