File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ notice() {
2828reset_color () {
2929 SWITCH=" \033["
3030 NORMAL=" ${SWITCH} 0m"
31- echo " ${NORMAL} "
31+ echo -n " ${NORMAL} "
3232}
3333
3434docker_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
You can’t perform that action at this time.
0 commit comments