mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
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:
parent
27fc0764fa
commit
b008cac781
7 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue