From 341f9da5a2a43837226cff78ca3eec195364115b Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sat, 7 May 2022 17:43:35 +0200 Subject: [PATCH] suppression des pwd inutiles --- content/PUT YOUR FILES HERE | 0 genlog.sh | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 content/PUT YOUR FILES HERE diff --git a/content/PUT YOUR FILES HERE b/content/PUT YOUR FILES HERE deleted file mode 100644 index e69de29..0000000 diff --git a/genlog.sh b/genlog.sh index 0b09ba9..1072244 100755 --- a/genlog.sh +++ b/genlog.sh @@ -11,13 +11,13 @@ then source_path="$1" else # sinon on utilise le dossier "content" à la racine de notre script - source_path="${PWD}"/content + source_path=content fi # on génère la date et on la fout dans le footer date="$(date)" -sed "s/GEN_DATE/$date/" "${PWD}"/html/footer.html > "$tempdir/footer.html" +sed "s/GEN_DATE/$date/" html/footer.html > "$tempdir/footer.html" # on cherche récursivement tous les fichiers ".gmi" dans le dossier de taff @@ -29,7 +29,7 @@ do # dans le header.html, remplacer "<\-- TITLE -->" par le titre récupéré # puis enregistrer le fichier ainsi modifié dans "temp/header.html" - sed "s#<\!-- TITLE -->#$title#" "${PWD}"/html/header.html > "$tempdir/header.html" + sed "s#<\!-- TITLE -->#$title#" html/header.html > "$tempdir/header.html" # conversion du .gmi en .html gmnitohtml < "$gmi_file" > "$tempdir/body.html"