Quote:
Originally Posted by colucix
Can you post the script with the "test -f" statement? Maybe there is some ambiguity in the logic.
|
Hereby:
while true; do
echo -n "Which Domain: "
read DOMAIN
if test -z "$DOMAIN"; then
echo "You didn't entered a Domain!"
elif test -f"$DOMAIN"; then
echo "Domain already exists!"
else
echo "ok!"
break;
fi
done