aboutsummaryrefslogtreecommitdiff
path: root/scripts/laminar
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-02-11 05:45:24 +0300
committerFrederick Muriuki Muriithi2022-02-11 05:52:36 +0300
commit651c8ad9ae20ab52e7ab694c0caa9d92774b49b5 (patch)
tree65c1f4033a672e65b7b5b6a87acfca9811e2eae2 /scripts/laminar
parentfad6f623f204aa1064b48fe1d8cb575f270ac217 (diff)
downloadgenenetwork3-651c8ad9ae20ab52e7ab694c0caa9d92774b49b5.tar.gz
Quote shell variables to prevent globbing
Quote the shell variables to prevent globbing and word splitting. Deactivate this check for the specific lines that require intentional word splitting
Diffstat (limited to 'scripts/laminar')
-rw-r--r--scripts/laminar/gn3-lint.sh4
-rw-r--r--scripts/laminar/gn3-mypy.sh4
-rw-r--r--scripts/laminar/gn3-unittest.sh4
3 files changed, 6 insertions, 6 deletions
diff --git a/scripts/laminar/gn3-lint.sh b/scripts/laminar/gn3-lint.sh
index b6f0c89..1299a96 100644
--- a/scripts/laminar/gn3-lint.sh
+++ b/scripts/laminar/gn3-lint.sh
@@ -4,7 +4,7 @@ set -e # Abort on first error
CUR_DIR=$PWD
GN3_CI_DIR=$HOME/CI/genenetwork3/
-cd $GN3_CI_DIR
+cd "${GN3_CI_DIR}"
git pull
# Run Pylint
@@ -12,4 +12,4 @@ env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \
guix environment --load=guix.scm -- pylint sheepdog/worker.py gn3/ tests
echo Done Running Pylint!
-cd $CUR_DIR
+cd "${CUR_DIR}"
diff --git a/scripts/laminar/gn3-mypy.sh b/scripts/laminar/gn3-mypy.sh
index a2a9782..6d04c35 100644
--- a/scripts/laminar/gn3-mypy.sh
+++ b/scripts/laminar/gn3-mypy.sh
@@ -4,7 +4,7 @@ set -e # Abort on first error
CUR_DIR=$PWD
GN3_CI_DIR=$HOME/CI/genenetwork3/
-cd $GN3_CI_DIR
+cd "${GN3_CI_DIR}"
git pull
# Run Pylint
@@ -12,4 +12,4 @@ env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \
guix environment --load=guix.scm -- mypy .
echo Done Running MyPy!
-cd $CUR_DIR
+cd "${CUR_DIR}"
diff --git a/scripts/laminar/gn3-unittest.sh b/scripts/laminar/gn3-unittest.sh
index 41dafe5..d18d5de 100644
--- a/scripts/laminar/gn3-unittest.sh
+++ b/scripts/laminar/gn3-unittest.sh
@@ -4,7 +4,7 @@ set -e # Abort on first error
CUR_DIR=$PWD
GN3_CI_DIR=$HOME/CI/genenetwork3/
-cd $GN3_CI_DIR
+cd "${GN3_CI_DIR}"
git pull
# Run Pylint
@@ -12,4 +12,4 @@ env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \
guix environment --load=guix.scm -- python -m unittest discover
echo Done Running Unittests!
-cd $CUR_DIR
+cd "${CUR_DIR}"