This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/dev-util/lua-language-server/files/wrapper-r1.sh
tastytea 7fdc6fd852
dev-util/lua-language-server: add 3.6.13
Signed-off-by: tastytea <tastytea@tastytea.de>
2023-03-09 15:16:31 +01:00

12 lines
429 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 @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/bin/lua-language-server \
--logpath="${STATEPATH}/log" \
--metapath="${DATAPATH}/meta" \
"$@"