blob: 1cd760c98f583bbd6f1a7277d134820f38439f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env bash
#must be equal separated
for i in "$@"; do
case $i in
--cache-dir=*)
export WORKING_DIR="${i#*=}"
shift # past argument=value
;;
esac
done
if [ -z $WORKING_DIR ]
then
WORKING_DIR=${XDG_CACHE_HOME:-${HOME}/.cache}/hath;
fi
mkdir -p ${WORKING_DIR}
cd ${WORKING_DIR}
for file in HentaiAtHome.jar HentaiAtHomeGUI.jar sqlite-jdbc.jar
do
[[ ! -f ${WORKING_DIR}/${file} ]] && \
ln -s /usr/lib/hath/${file} ${WORKING_DIR}/${file}
done
java -jar HentaiAtHome.jar $@
|