check_paths

tinymush-3.1p1/game/check_paths · 718 B

From the archive tm31p1.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh
#
# $Id: check_paths,v 1.2 2002/06/29 03:21:29 rmg Exp $
#
#	check_paths - Make sure mush.config paths are valid.
#		      Assumes mush.config has already been loaded in
#		      this shell.
#
if [ -z "$BIN" -o ! -d "$BIN" -o ! -r "$BIN" ]; then
	echo "Error: Invalid BIN directory in mush.config"
	exit 1
fi
if [ -z "$TEXT" -o ! -d "$TEXT" -o ! -w "$TEXT" ]; then
	echo "Error: Invalid TEXT directory in mush.config"
	exit 1
fi
if [ -z "$DATA" -o ! -d "$DATA" -o ! -w "$DATA" ]; then
	echo "Error: Invalid DATA directory in mush.config"
	exit 1
fi
if [ -z "$BACKUP_DIR" -o ! -d "$BACKUP_DIR" -o ! -w "$BACKUP_DIR" ]; then
	echo "Warning: Invalid BACKUP_DIR in mush.config; using . instead"
	BACKUP_DIR=.
fi

Site Stats

Snippets: 1791
Codebases: 571