#!/bin/sh

die() {
	printf 'Error: %s\n' "${@}" 1>&2
	exit 1
}

IWAD="/usr/share/games/doom/blasphem.wad"
if ! [ -f "$IWAD" ]; then
	die "Please install blasphemer first!"
else
	heretic -iwad $IWAD
fi
