Skip to content

Commit

Permalink
Updated scripts example with more challenging test (Unix)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Sep 25, 2023
1 parent 42cb0e8 commit 611663b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/scripts/construct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ specs:
- python

script_env_variables:
CUSTOM_VARIABLE_1: CUSTOM1
CUSTOM_VARIABLE_2: CUSTOM2
CUSTOM_VARIABLE_1: FIR$T CUSTOM STRING WITH SPACES AND @*#! "CHARACTERS"
CUSTOM_VARIABLE_2: $ECOND CUSTOM STRING WITH SPACES AND @*#! "CHARACTERS"

pre_install: pre_install.sh # [unix]
pre_install: pre_install.bat # [win]
Expand Down
4 changes: 2 additions & 2 deletions examples/scripts/post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ echo "PREFIX=${PREFIX}"

test "${INSTALLER_NAME}" = "Scripts"
test "${INSTALLER_VER}" = "X"
test "${CUSTOM_VARIABLE_1}" = "CUSTOM1"
test "${CUSTOM_VARIABLE_2}" = "CUSTOM2"
test "${CUSTOM_VARIABLE_1}" = 'FIR$T CUSTOM STRING WITH SPACES AND @*#! "CHARACTERS"'
test "${CUSTOM_VARIABLE_2}" = '$ECOND CUSTOM STRING WITH SPACES AND @*#! "CHARACTERS"'

if [[ $(uname -s) == Linux ]]; then
if [[ ${INSTALLER_PLAT} != linux-* ]]; then
Expand Down
4 changes: 2 additions & 2 deletions examples/scripts/pre_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ echo "PREFIX=${PREFIX}"

test "${INSTALLER_NAME}" = "Scripts"
test "${INSTALLER_VER}" = "X"
test "${CUSTOM_VARIABLE_1}" = "CUSTOM1"
test "${CUSTOM_VARIABLE_2}" = "CUSTOM2"
test "${CUSTOM_VARIABLE_1}" = 'FIR$T CUSTOM STRING WITH SPACES AND @*#! "CHARACTERS"'
test "${CUSTOM_VARIABLE_2}" = '$ECOND CUSTOM STRING WITH SPACES AND @*#! "CHARACTERS"'

if [[ $(uname -s) == Linux ]]; then
if [[ ${INSTALLER_PLAT} != linux-* ]]; then
Expand Down

0 comments on commit 611663b

Please sign in to comment.