Changed a directory test to look specifically for a directory.

This commit is contained in:
Marcus Whybrow 2012-06-05 01:31:49 +01:00
parent 524f22f781
commit 5c2965cba7

View File

@ -718,7 +718,7 @@ server_create() {
# $2: The server name to delete
server_delete() {
if is_valid_name "$1"; then
if [[ -e "$SERVER_STORAGE_PATH/$1" ]]; then
if [[ -d "$SERVER_STORAGE_PATH/$1" ]]; then
printf "Are you sure you want to delete this server and its worlds (note: backups are preserved) [y/N]: "
read answer