File tibia of Package tibia-installer

#!/bin/bash

TIBIA_EXECUTABLE="$HOME/Games/Tibia/Tibia"

if [ $UID -lt 1000 ]; then
	echo "This script is not meant to be run by special users. Aborting."
	exit 1
fi

if [ ! -e $TIBIA_EXECUTABLE ]; then
	echo "Tibia is not currently installed. Please run 'tibia-install' to install the game."
	exit 1
fi

output_ldd=$(ldd $TIBIA_EXECUTABLE 2>/dev/null | grep "not found")
if [[ -n $output_ldd ]]; then
	echo "Some required libraries have not been found on your system."
	echo "Please install the packages providing these libraries, and try again."
	echo ""
	echo "$output_ldd"
	exit 1
fi

$TIBIA_EXECUTABLE
openSUSE Build Service is sponsored by