summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-05-20 15:11:23 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-05-20 15:11:23 +0200
commitdfeb28b67e55704b672113e0f0932bd6478eee5a (patch)
treea0ed79f814600b6dede806c42d6b7ac6f5a9a5ad
parent7c0f56a88663c32252cf7561d06900ed894cf239 (diff)
downloadssg-dfeb28b67e55704b672113e0f0932bd6478eee5a.tar.gz
refactor: use static dir instead of mediatrunk
-rwxr-xr-xssg8
1 files 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
remember that computers suck.