diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-20 15:11:23 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-20 15:11:23 +0200 |
commit | dfeb28b67e55704b672113e0f0932bd6478eee5a (patch) | |
tree | a0ed79f814600b6dede806c42d6b7ac6f5a9a5ad | |
parent | 7c0f56a88663c32252cf7561d06900ed894cf239 (diff) | |
download | ssg-dfeb28b67e55704b672113e0f0932bd6478eee5a.tar.gz |
refactor: use static dir instead of mediatrunk
-rwxr-xr-x | ssg | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |