canvas-lms/script
Andrea Cirulli 493549ddc8 add telemetry support for zsh
Zsh is the default shell on the new macOS and does not
implement function export features. In order to have both
bash and zsh to work we changed the snippet for opting-in
telemetry using a variable to store the function.

test-plan:
- local docker smoke passes
- setup/update scripts work in bash
- setup/update scripts work if executed on zsh
- test enable/disable telemetry from .bashrc and .zshrc

Change-Id: I4e034f486dde078bba517172114e9b3e01f1817f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/264024
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2021-05-03 16:37:09 +00:00
..
common add telemetry support for zsh 2021-05-03 16:37:09 +00:00
brakeman add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
canvas_init oh whoops, bash might not always be the default shell 2011-02-11 12:33:24 -07:00
canvas_update update script to use new function name trap_result 2021-04-12 21:15:42 +00:00
configure_replication.sh Add configuration and scripts for replication. 2019-12-20 22:21:12 +00:00
consume_consul_events add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
delayed_job add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
docker_dev_setup.sh add arguments to script name for telemetry 2021-04-28 17:23:17 +00:00
docker_dev_update.sh add support for mutagen setup and update. 2021-04-27 19:46:36 +00:00
docker_pull_image.sh update docker documentation 2021-01-06 18:29:18 +00:00
eslint add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
fix_inst_esm.js remove "exports" from all @instructure/ packages 2021-01-15 19:39:02 +00:00
generate_js_coverage fix JS job sanity around COVERAGE var 2021-01-27 16:24:14 +00:00
generate_lti_variable_substitution_markdown add permissions variable expansion 2019-06-12 12:13:28 +00:00
install_assets.sh change to compile_assets_dev for install_assets 2021-03-09 19:28:46 +00:00
install_hooks minor linux docker development tweaks 2021-01-13 18:48:08 +00:00
lint_commit_message add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
linter.rb add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
nuke_node.sh rename some things 2021-04-06 01:12:49 +00:00
process_incoming_emails add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
rebase_canvas_and_plugins.sh add support for mutagen setup and update. 2021-04-27 19:46:36 +00:00
render_json_lint add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
rlint add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
rspec-queue add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
rspec-queue-with-retries Remove retry on ChromeDriver worker crash 2019-04-29 21:19:05 +00:00
stylelint add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
tail_kinesis add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
tatl_tael add frozen_string_literal comment to binaries 2021-03-30 18:14:03 +00:00
upgrade-instructure-ui add CanvasDateInput and bulk edit test table 2020-03-31 03:52:27 +00:00
xsslint.js rename some things 2021-04-06 01:12:49 +00:00