From dfeb28b67e55704b672113e0f0932bd6478eee5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 20 May 2024 15:11:23 +0200 Subject: refactor: use static dir instead of media --- ssg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ssg b/ssg index 8253b52..2574b7b 100755 --- a/ssg +++ b/ssg @@ -5,7 +5,7 @@ set -xe -media_branch="media" +SSG_STATIC_BRANCH="static" src_files="$(__list_files ${SSG_SRC_DIR})" dirs="${SSG_MEDIA_DIR} \ ${SSG_SRC_DIR} \ @@ -23,7 +23,7 @@ for src_file in ${src_files}; do done # Copy images -if git rev-parse --verify media; then - git restore --source="${media_branch}" --worktree "img" - mv "img" "out" +if git rev-parse --verify "${SSG_STATIC_BRANCH}"; then + git restore --source="${SSG_STATIC_BRANCH}" --worktree "static" + mv "static" "out" fi -- cgit v1.2.3