Clarify wording of install.sh --dry-run output (#2751)

This commit is contained in:
David Wahler
2022-06-30 13:01:54 -05:00
committed by GitHub
parent 6ad0f31687
commit 29be359f3d
+24
View File
@@ -84,6 +84,11 @@ echo_latest_version() {
}
echo_standalone_postinstall() {
if [ "${DRY_RUN-}" ]; then
echo_dryrun_postinstall
return
fi
cath <<EOF
Standalone release has been installed into $STANDALONE_INSTALL_PREFIX/bin/$STANDALONE_BINARY_NAME
@@ -105,6 +110,11 @@ EOF
}
echo_systemd_postinstall() {
if [ "${DRY_RUN-}" ]; then
echo_dryrun_postinstall
return
fi
echoh
cath <<EOF
$1 package has been installed.
@@ -125,6 +135,15 @@ Or, just run the server directly:
EOF
}
echo_dryrun_postinstall() {
cath <<EOF
Dry-run complete.
To install Coder, re-run this script without the --dry-run flag.
EOF
}
main() {
if [ "${TRACE-}" ]; then
set -x
@@ -241,6 +260,11 @@ main() {
distro_name
if [ "${DRY_RUN-}" ]; then
echoh "Running with --dry-run; the following are the commands that would be run if this were a real installation:"
echoh
fi
# Standalone installs by pulling pre-built releases from GitHub.
if [ "$METHOD" = standalone ]; then
if has_standalone; then