setup script ln fix

This commit is contained in:
mrfry 2023-04-27 09:55:36 +02:00
parent 434777125c
commit 7dada00f72

View file

@ -24,10 +24,9 @@ makeNextSubmodule() {
npm run export || exit 1 npm run export || exit 1
npx --yes next telemetry disable npx --yes next telemetry disable
cd "${baseDir}" || exit 1 cd "${baseDir}" || exit 1
# TODO: check if link exists
linkTarget="$PWD/nextStatic/${2}" linkTarget="$PWD/nextStatic/${2}"
if [ ! -f "${linkTarget}" ]; then if [ ! -e "${linkTarget}" ]; then
ln -sf "$PWD/submodules/${1}/out" "${linkTarget}" ln -sfv "$PWD/submodules/${1}/out" "${linkTarget}"
fi fi
} }