Skip to content

Commit 89f4ebb

Browse files
feat(ux): don't print about closing Terminal in docker container (#1864)
1 parent 9986217 commit 89f4ebb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

nodebuilder

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,8 +1932,8 @@ if [ "${ibd_status}" = 'true' ]; then
19321932
log_info 'Disabling system sleep, suspend, and hibernate.'
19331933
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target > /dev/null 2>&1
19341934
fi
1935-
log_info "Close this Terminal window by clicking on the 'X'."
1936-
log_info "This screen will refresh in ${SLEEP_TIME_SECONDS} seconds."
1935+
is_running_in_container || log_info "Close this Terminal window by clicking on the 'X'."
1936+
log_info "This info will refresh in ${SLEEP_TIME_SECONDS} seconds."
19371937
fi
19381938
sleep "${SLEEP_TIME_SECONDS}"
19391939
else
@@ -2014,8 +2014,8 @@ while [ "${ibd_status}" = 'true' ]; do
20142014
fi
20152015

20162016
printf '%s\n\n' 'The chain sync can take several days or even weeks.'
2017-
printf '%s\n' "Close this Terminal window by clicking on the 'X'."
2018-
printf '%s' "This screen will refresh in ${SLEEP_TIME_SECONDS} seconds."
2017+
is_running_in_container || printf '%s\n' "Close this Terminal window by clicking on the 'X'."
2018+
printf '%s' "This info will refresh in ${SLEEP_TIME_SECONDS} seconds."
20192019
sleep "${SLEEP_TIME_SECONDS}"
20202020

20212021
blockchain_info=$(bitcoin-cli --datadir="${BITCOIN_DATA_DIRECTORY}" --rpcwait getblockchaininfo)

test/test_nodebuilder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ for message in \
262262
'INFO: Found free space available... [0-9]+ [GM]iB.$' \
263263
'INFO: Starting Bitcoin Core.$' \
264264
'INFO: Checking the RPC status.$' \
265-
'INFO: This screen will refresh in 10 seconds.' \
265+
'INFO: This info will refresh in 10 seconds.' \
266266
'INFO: Syncing the block headers \((first|second) pass\).$' \
267267
'INFO: Syncing the blockchain. Please be patient.$' \
268268
'Sync progress: [0-9]+\.[0-9]{3} %$' \

0 commit comments

Comments
 (0)