#!/bin/sh
# Slackware wrapper for the novelWriter AppImage.
runme(){
    cd /opt/novelWriter
    ./novelwriter-2.7.5.AppImage "$@"
}

if [ $UID == 0 ]; then
    read -p "You are currently running as root...\
 Are you sure you want to proceed? (N/y): " resp
    case "$resp" in
	y|yes)
	    runme
	    ;;
	*)
	    echo Exiting
	    exit 0
	    ;;
    esac
else
    runme $@
fi
