summarylogtreecommitdiffstats
path: root/mekhq.sh
blob: 1e0d1902b4058d4faab32b2f301ee0fa031a1537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

conf=$HOME/.config/mekhq

if [[ -n "$XGD_CONFIG_HOME" ]]
then
    conf="$XDG_CONFIG_HOME/mekhq"
fi

if [[ ! -d "$conf" ]]
then
    mkdir -p "$conf"
fi

rsync -avc /usr/lib/mekhq/ "$conf/"

cd "$conf"

exec env MEGAMEK_CONFPATH="$conf" "$conf/hq"