12 lines
134 B
Bash
Executable File
12 lines
134 B
Bash
Executable File
#!/bin/sh
|
|
echon "$1 (y/n) [$2] ? "
|
|
X=""
|
|
read X
|
|
if [ "$X" = "" ]; then
|
|
X="$2"
|
|
fi
|
|
case "$X" in
|
|
[yY]*) exit 0;;
|
|
*) exit 1;;
|
|
esac
|