xrsh-com/com/isoterminal/mnt/confirm

5 lines
129 B
Plaintext
Raw Normal View History

#!/bin/sh
read -p "$(printf "\033[0m")[?] $1 [y/n] $(printf "\033[0m")" y
test $y = y && echo true && exit
echo false