Fix parameters in netlify cli script (#2258)

* Fix parameters in netlify cli script
* Use node-modules linker when deploying to netlify

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-07-31 00:39:49 +02:00 committed by GitHub
parent 27fc0764fa
commit b008cac781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 8 deletions

View file

@ -6,12 +6,11 @@
# SPDX-License-Identifier: AGPL-3.0-only
#
cd "$(dirname "$0")"
json=$(./netlify-cli.sh deploy --build --prod --json --message "${1:0:8}: $2")
json=$($(dirname "$0")/netlify-cli.sh deploy --build --prod --json --message "${1:0:8}: $2")
if [ $? -ne 0 ]; then
echo "Error while executing netlify! Will try again without json..."
./netlify-cli.sh deploy --build --prod --message "${1:0:8}: $2"
$(dirname "$0")/netlify-cli.sh deploy --build --prod --message "${1:0:8}: $2"
exit 1
fi