fix(frontend): build script error

The extra `api` at the end did lead mv to try to copy the api directory in directory named api. This is not intended behaviour and fails if there is no api directory already.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2023-10-22 20:39:22 +02:00 committed by Tilman Vatteroth
parent e117631f7d
commit 7236a08cfe

View file

@ -29,7 +29,7 @@ if [ ! -z "${NEXT_PUBLIC_USE_MOCK_API}" ]; then
else else
echo "🦔 > Moving Mock API because NEXT_PUBLIC_USE_MOCK_API is unset" echo "🦔 > Moving Mock API because NEXT_PUBLIC_USE_MOCK_API is unset"
mkdir -p ../tmp/src/pages mkdir -p ../tmp/src/pages
mv src/pages/api ../tmp/src/pages/api mv src/pages/api ../tmp/src/pages/
fi fi
echo "🦔 > Building" echo "🦔 > Building"