Skip to content

Commit

Permalink
Merge pull request #22 from digicatapult/patch/sed_strings
Browse files Browse the repository at this point in the history
Fix backslashes in sed strings
  • Loading branch information
elisehaldane authored Mar 22, 2024
2 parents 8fa699c + f4f8445 commit 67315ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions check-envs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if [ ! "${POT_MOUNT_BASE}" ] ; then
POT_MOUNT_BASE=/opt/pot
echo POT_MOUNT_BASE not set, using ${POT_MOUNT_BASE}
fi
CHERIBSD_BUILD_ID=$(echo ${CHERIBSD_BUILD_ID} | sed 's/\s/_/g')
RUNNER_NAME=$(echo ${RUNNER_NAME} | sed 's/\s/_/g; s/[$*?]//g')
POT_MOUNT_BASE=$(echo ${POT_MOUNT_BASE} | sed 's/\s/_/g; s/[$*?]//g')
CHERIBSD_BUILD_ID=$(echo ${CHERIBSD_BUILD_ID} | sed 's/\\s/_/g')
RUNNER_NAME=$(echo ${RUNNER_NAME} | sed 's/\\s/_/g; s/[$*?]//g')
POT_MOUNT_BASE=$(echo ${POT_MOUNT_BASE} | sed 's/\\s/_/g; s/[$*?]//g')
# Set the pot name to use underscores in place of dots (the one character pot
# names are apparently not allowed).
POTNAME=$(echo ${RUNNER_NAME} | sed 's/\./_/g')
Expand Down

0 comments on commit 67315ab

Please sign in to comment.