Skip to content

Commit b71f4cb

Browse files
authored
Unify access to env variables (#2086)
1 parent a4ede5d commit b71f4cb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/contributed-recipes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Calculate recipes matrix 🛠
3232
id: set-matrix
33-
run: docs/using/recipe_code/generate_matrix.py >> $GITHUB_OUTPUT
33+
run: docs/using/recipe_code/generate_matrix.py >> "${GITHUB_OUTPUT}"
3434

3535
test-recipes:
3636
runs-on: ${{ matrix.runs-on }}

aarch64-runner/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -ex
33

44
GITHUB_RUNNER_USER="runner-user"
55

6-
if [ "$EUID" -ne 0 ]; then
6+
if [ "${EUID}" -ne 0 ]; then
77
echo "Please run as root"
88
exit 1
99
fi

docs/using/recipe_code/oracledb.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN wget --progress=dot:giga "${INSTANTCLIENT_URL}/oracle-instantclient-basiclit
3333

3434
# And configure variables
3535
RUN echo "ORACLE_HOME=/usr/lib/oracle/${INSTANTCLIENT_MAJOR_VERSION}/client64" >> "${HOME}/.bashrc" && \
36-
echo "PATH=${ORACLE_HOME}/bin:$PATH" >> "${HOME}/.bashrc" && \
36+
echo "PATH=${ORACLE_HOME}/bin:${PATH}" >> "${HOME}/.bashrc" && \
3737
echo "LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}" >> "${HOME}/.bashrc" && \
3838
echo "export ORACLE_HOME" >> "${HOME}/.bashrc" && \
3939
echo "export PATH" >> "${HOME}/.bashrc" && \

images/docker-stacks-foundation/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if [ "$(id -u)" == 0 ]; then
133133
sed -r "s#Defaults\s+secure_path\s*=\s*\"?([^\"]+)\"?#Defaults secure_path=\"${CONDA_DIR}/bin:\1\"#" /etc/sudoers | grep secure_path > /etc/sudoers.d/path
134134

135135
# Optionally grant passwordless sudo rights for the desired user
136-
if [[ "$GRANT_SUDO" == "1" || "$GRANT_SUDO" == "yes" ]]; then
136+
if [[ "${GRANT_SUDO}" == "1" || "${GRANT_SUDO}" == "yes" ]]; then
137137
_log "Granting ${NB_USER} passwordless sudo rights!"
138138
echo "${NB_USER} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/added-by-start-script
139139
fi

tests/docker-stacks-foundation/test_user_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def test_jupyter_env_vars_to_unset(
262262
"start.sh",
263263
"bash",
264264
"-c",
265-
"echo I like $FRUIT and ${SECRET_FRUIT:-stuff}, and love ${SECRET_ANIMAL:-to keep secrets}!",
265+
"echo I like ${FRUIT} and ${SECRET_FRUIT:-stuff}, and love ${SECRET_ANIMAL:-to keep secrets}!",
266266
],
267267
**root_args, # type: ignore
268268
)

0 commit comments

Comments
 (0)