Skip to content

Quiet execution of the install bash file #580

Closed Answered by Jint-lzxy
lamyc asked this question in Q&A
Discussion options

You must be logged in to vote

Yep that's possible, and we have already utilized this feature in our CI pipeline. You only need to "pretend" that the current session is non-interactive (i.e., define ${NONINTERACTIVE} OR ${CI}) during installation:

nvimdots/scripts/install.sh

Lines 174 to 192 in b05e62e

# Check if script is run non-interactively (e.g. CI)
# If it is run non-interactively we should not prompt for confirmation.
# Always use single-quoted strings with `exp` expressions
# shellcheck disable=SC2016
if [[ -z "${NONINTERACTIVE-}" ]]; then
if [[ -n "${CI-}" ]]; then
warn 'Running in non-interactive mode because `$CI` is set.'
NONINTERACTIVE=1
elif [[ ! -t 0 ]];

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jint-lzxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants