Skip to content

Commit

Permalink
'source' -> '.' in bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Dec 18, 2024
1 parent 09302d6 commit 6b34873
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ CI_CONDA_DIR=/tmp/conda
CI_CONDA_SH=$CI_CONDA_DIR/etc/profile.d/conda.sh

ci_conda_activate() {
source $CI_CONDA_SH
. $CI_CONDA_SH
conda activate
}
2 changes: 1 addition & 1 deletion .github/scripts/format-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ unformatted() {
return 0
}

source $(dirname ${BASH_SOURCE[0]})/common.sh
. $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
CONDEV_SHELL_CMD=unformatted condev-shell
2 changes: 1 addition & 1 deletion .github/scripts/install-conda.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set -eux
source $(dirname ${BASH_SOURCE[0]})/common.sh
. $(dirname ${BASH_SOURCE[0]})/common.sh
url=https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Miniforge3-Linux-x86_64.sh
installer=/tmp/$(basename $url)
wget --no-verbose -O $installer $url
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/make-docs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -ae
source $(dirname ${BASH_SOURCE[0]})/common.sh
. $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
cd docs
source install-deps
. install-deps
make docs
2 changes: 1 addition & 1 deletion .github/scripts/make-package.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set -ae
source $(dirname ${BASH_SOURCE[0]})/common.sh
. $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
set -x
make package
2 changes: 1 addition & 1 deletion .github/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set -ae
source $(dirname ${BASH_SOURCE[0]})/common.sh
. $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
set -ux
f=recipe/meta.json
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ run_tests() {
return $status
}

source $(dirname ${BASH_SOURCE[0]})/common.sh
. $(dirname ${BASH_SOURCE[0]})/common.sh
ci_conda_activate
for version in ${SUPPORTED_PYTHON_VERSIONS[*]}; do
PYTHON_VERSION=$version
Expand Down

0 comments on commit 6b34873

Please sign in to comment.