Add a comment on the string substitution formula

This commit is contained in:
Ben Schwartz 2021-02-12 14:25:25 -05:00
parent c2ae78d4db
commit d3d545e0c3

View file

@ -22,6 +22,8 @@
# Note that you MUST use "source" in order to run the script in the same process as the calling
# script, allowing fill_packaging_opts.sh to fill variables for the caller.
# Input: "/absolute/path/src/server_manager/electron_app/something_action.sh"
# Output: "yarn do server_manager/electron_app/something"
readonly ELECTRON_PATH='server_manager/electron_app/'
readonly RELATIVE="${1#*/src/${ELECTRON_PATH}}"
readonly YARN_COMMAND="yarn do ${ELECTRON_PATH}${RELATIVE%_action.sh}"