#!/bin/bash function config { if [[ ! -s $1 ]]; then echo "Specify a valid properties file." exit 1 fi if [[ -s /usr/share/dom4/current ]]; then game=$( /usr/share/dom4/current cat < /usr/share/dom4/current fi if [[ ! -s /usr/share/dom4/current ]]; then echo "No current game found. Use dom4 config to load game configuration." exit 1 fi game=$(> "/usr/share/dom4/config/$game.properties" cat <