Skip to content

Commit 6feb560

Browse files
committed
Fix demo program provisioning on BSD/Macs
1 parent a3791c7 commit 6feb560

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

course-generator/build-course-json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Script to build course configurations in proper json format that can be passed into provision-courses.sh
1+
# Script to build course configurations in proper json format that can be passed into create-courses.sh
22
# See test-course.json for a master list of course configurations
33
# TODO: Link documentation for course-generator-tool
44
# USAGE: ./build-course-json.sh [course-config-file]

programs/provision.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ notice() {
2828
reset_color() {
2929
SWITCH="\033["
3030
NORMAL="${SWITCH}0m"
31-
echo "${NORMAL}"
31+
echo -n "${NORMAL}"
3232
}
3333

3434
docker_exec() {
@@ -50,7 +50,7 @@ provision_ida() {
5050
cmd=${2:-"shell"}
5151

5252
# Escape double quotes and backticks from the Python
53-
PROGRAM_SCRIPT="$(sed 's/\("\|`\)/\\\1/g' < "$BASEDIR/$service.py")"
53+
PROGRAM_SCRIPT="$(sed -E 's/("|`)/\\\1/g' < "$BASEDIR/$service.py")"
5454

5555
cmd="$cmd -c \"$PROGRAM_SCRIPT\""
5656

0 commit comments

Comments
 (0)