make the sed command in makefile cross-platform

existing implementation fails on mac because -i requires an argument. according to chatgpt this new version should run everywhere
This commit is contained in:
Andrea Vos 2025-02-06 20:36:40 +01:00 committed by Valentyne Stigloher
parent e4713cf536
commit 3fbad5c13d

View File

@ -44,7 +44,7 @@ deploy:
switch:
rm -rf cache
rm -rf .nuxt/cache
sed -Ei s/NUXT_PUBLIC_LOCALE=.+/NUXT_PUBLIC_LOCALE=${LANG}/ .env
sed -E -i.bak s/NUXT_PUBLIC_LOCALE=.+/NUXT_PUBLIC_LOCALE=${LANG}/ .env
echo 'Please remember to restart the dev server to make the language switch visible'
migrate: