From f747556c17930865e9d6750ebc4bfafeb2e1e63d Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 18 Jun 2020 04:33:57 +0200 Subject: [PATCH] fix path --- transform_json.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transform_json.sh b/transform_json.sh index 149786e..0bef34c 100755 --- a/transform_json.sh +++ b/transform_json.sh @@ -1,7 +1,7 @@ #!/bin/bash # Varialbes -n=1 # Nombre de jours pour les pas en abscisse +n=2 # Nombre de jours pour les pas en abscisse SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" if [[ -e $SCRIPTPATH/.env ]]; then source $SCRIPTPATH/.env; else echo "Veuillez créer votre fichier .env inspiré de .env.example" && exit 1; fi @@ -20,4 +20,4 @@ for i in $rWallets; do fi done -sed "s/_JSONDATA/$result/g" tpl/graph.html > $WEBPATH/graph.html +sed "s/_JSONDATA/$result/g" $SCRIPTPATH/tpl/graph.html > $WEBPATH/graph.html