-
Notifications
You must be signed in to change notification settings - Fork 776
Update launcher script to download and call launcher rewrite #891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
77eb25d
to
2d0f6f1
Compare
2d0f6f1
to
fce4e3e
Compare
fce4e3e
to
ba0d5d8
Compare
The reason for the original complicated flow control logic was an attempt to squelch messaging to stdout for autocompletion messaging (IE, so Additionally: |
1bbfc24
to
e61df07
Compare
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.
Whitespace issues, otherwise LGTM.
launcher
Outdated
case "$1" in | ||
update) | ||
echo "updating launcher..." >&2 | ||
update | ||
exit 0 | ||
;; | ||
*) | ||
test -f "${BINDIR}/launcher" || update | ||
echo "run ./launcher update to update launcher" >&2 | ||
check_prereqs | ||
exec "${BINDIR}/launcher" "$@" | ||
esac |
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.
This case
statement uses mixed tabs and spaces for indentation.
download, checksum and use https://github.com/discourse/launcher support update arg to re-download launcher binary. keep most of the prereqs function in place. check for autocompletion and squelch output if we're calling autocomplete. Remove checks on config existence and config permissions. If we need this check it should go into the launcher app. update overlay check to include overlayfs which is what comes up on default latest docker on desktop versions
Redirect output to stderr.
Ignore check prereqs with $COMP_LINE for autcomplete support.
* Remove discourse docker image download check - this is done in launcher. * update attach check, attach </dev/null for stdin, this can cause open file descriptors to hang around when run when `source`-ing the script.
Reserve stdout for autocompletion. Update the last message to stderr
e61df07
to
2cfc2b0
Compare
download, checksum and use https://github.com/discourse/launcher
support update arg to re-download launcher binary.
keep most of the prereqs function in place. Use hello-world image to check docker install.
check for autocompletion and squelch output if we're calling autocomplete.
Remove checks on config existence and config permissions. If we need this check it should go into the launcher app.
update overlay check to include overlayfs which is what comes up on default latest docker on desktop versions