mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
setup script ln fix
This commit is contained in:
parent
434777125c
commit
7dada00f72
1 changed files with 2 additions and 3 deletions
|
@ -24,10 +24,9 @@ makeNextSubmodule() {
|
|||
npm run export || exit 1
|
||||
npx --yes next telemetry disable
|
||||
cd "${baseDir}" || exit 1
|
||||
# TODO: check if link exists
|
||||
linkTarget="$PWD/nextStatic/${2}"
|
||||
if [ ! -f "${linkTarget}" ]; then
|
||||
ln -sf "$PWD/submodules/${1}/out" "${linkTarget}"
|
||||
if [ ! -e "${linkTarget}" ]; then
|
||||
ln -sfv "$PWD/submodules/${1}/out" "${linkTarget}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue