forked from chocolate-doom/chocolate-doom
-
Notifications
You must be signed in to change notification settings - Fork 5
/
psd.in
16 lines (15 loc) · 843 Bytes
/
psd.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
if [[ -f /home/${USER}/.psdoom-ng/psdoom-ng.conf ]]; then
source /home/${USER}/.psdoom-ng/psdoom-ng.conf
elif [[ -f /etc/psdoom-ng.conf ]]; then
source /etc/psdoom-ng.conf
fi
[[ ! -v PSDOOMPSCMD || -z $PSDOOMPSCMD ]] && Z="$(unset PSDOOMPSCMD)" || export PSDOOMPSCMD="${PSDOOMPSCMD}"
[[ ! -v PSDOOMRENICECMD || -z $PSDOOMRENICECMD ]] && Z="$(unset PSDOOMRENICECMD)" || export PSDOOMRENICECMD="${PSDOOMRENICECMD}"
[[ ! -v PSDOOMKILLCMD || -z $PSDOOMKILLCMD ]] && Z="$(unset PSDOOMKILLCMD)" || export PSDOOMKILLCMD="${PSDOOMKILLCMD}"
[[ ! -v DOOMWADPATH || -z $DOOMWADPATH ]] && Z="$(unset DOOMWADPATH)" || export DOOMWADPATH="${DOOMWADPATH}"
echo "PSDOOMPSCMD=${PSDOOMPSCMD}"
echo "PSDOOMRENICECMD=${PSDOOMRENICECMD}"
echo "PSDOOMKILLCMD=${PSDOOMKILLCMD}"
echo "DOOMWADPATH=${DOOMWADPATH}"
/usr/bin/psdoom-ng ${DEFAULT_ARGS} $@