tastytea
35f4f66c88
Some checks failed
continuous-integration/drone/push Build is failing
store data in user-owned dirs instead of using a temporary dir Signed-off-by: tastytea <tastytea@tastytea.de>
13 lines
462 B
Bash
13 lines
462 B
Bash
#!/bin/sh
|
|
# some paths must be writable, so we put them into user-owned directories
|
|
|
|
DATAPATH="${XDG_DATA_HOME:-${HOME}/.local/share}/lua-language-server"
|
|
STATEPATH="${XDG_STATE_HOME:-${HOME}/.local/state}/lua-language-server"
|
|
mkdir --parents ${DATAPATH} ${STATEPATH}
|
|
|
|
exec EPREFIX/opt/lua-language-server/bin/lua-language-server \
|
|
-E EPREFIX/opt/lua-language-server/main.lua \
|
|
--logpath="${STATEPATH}/log" \
|
|
--metapath="${DATAPATH}/meta" \
|
|
"$@"
|