mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Call WaitForKeypress from wait_for_keypress, and report this old function when called to developers
This commit is contained in:
parent
f4691536ee
commit
7c4099a7da
@ -2261,23 +2261,19 @@
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Wait for [ENTER] or manually break
|
# Wait for [ENTER] or manually break (deprecated, will be removed later)
|
||||||
wait_for_keypress()
|
wait_for_keypress() {
|
||||||
{
|
if IsDeveloperMode; then Debug "Warning: old wait_for_keypress function is used"; fi
|
||||||
if [ ! ${QUICKMODE} -eq 1 ]; then
|
WaitForKeypress
|
||||||
echo ""; echo "[ Press [ENTER] to continue, or [CTRL]+C to stop ]"
|
}
|
||||||
read void
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Wait for [ENTER] or manually break
|
# Wait for [ENTER] or manually break
|
||||||
WaitForKeypress()
|
WaitForKeypress() {
|
||||||
{
|
|
||||||
if [ ! ${QUICKMODE} -eq 1 ]; then
|
if [ ! ${QUICKMODE} -eq 1 ]; then
|
||||||
echo ""; echo "[ Press [ENTER] to continue, or [CTRL]+C to stop ]"
|
echo ""; echo "[ Press [ENTER] to continue, or [CTRL]+C to stop ]"
|
||||||
read void
|
read void
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#================================================================================
|
#================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user