-
Couldn't load subscription status.
- Fork 4
Mount theme directory for theme development #26
base: develop
Are you sure you want to change the base?
Conversation
ce1830d to
c02fc2b
Compare
|
@hrpatel have you had a chance to review this yet? |
|
You'll need to rebase |
|
Lets get this reviewed but wait to merge depending on what happens with the vendor pricing.. it might be a moot point if we decided to go with Virtual Slate |
| 'd') DETACH='True' ;; | ||
| 't') THEME_DEV='True' ;; | ||
| '?') | ||
| color_echo red "Invalid option: -${OPTARG}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you load shtdlib?
|
|
||
| while getopts ":dt" opt; do | ||
| case ${opt} in | ||
| 'd') DETACH='True' ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make these true or false and use the builtin booleans
| fi | ||
| compose_command="${compose_command} up" | ||
|
|
||
| if [ "${DETACH}" == 'True' ] ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment about true/false
| while getopts ":dt" opt; do | ||
| case ${opt} in | ||
| 'd') DETACH='True' ;; | ||
| 't') THEME_DEV='True' ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the other boolean variable
| function stop_moodle { | ||
| local compose_command="${BASE_COMMAND}" | ||
|
|
||
| if [ "${THEME_DEV}" == 'True' ] ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can probably abstract out this if block into a function and reuse it the other places with the same code
Allow easier theme development by exposing the theme directory to the host system.