mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 14:26:46 +00:00
chore: auto format code
This commit is contained in:
@@ -23,7 +23,7 @@ is_interactive() { [[ -t 1 && -r /dev/tty ]]; }
|
||||
prompt_enter() {
|
||||
local prompt="$1"
|
||||
if is_interactive; then
|
||||
read -r -p "$prompt" </dev/tty || true
|
||||
read -r -p "$prompt" < /dev/tty || true
|
||||
else
|
||||
echo "$prompt"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user