12 lines
134 B
Plaintext
12 lines
134 B
Plaintext
|
#!/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
|