summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-05-18 22:11:14 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-05-18 22:11:14 +0200
commit7c0f56a88663c32252cf7561d06900ed894cf239 (patch)
treeeeca24a3582efdcfd6b8dc1fbd095d53f591838c
parentcd9cb54c72966de0b6bde9f8e4e7e0f33540d739 (diff)
downloadssg-7c0f56a88663c32252cf7561d06900ed894cf239.tar.gz
fix: do not mistake directory and branches
-rwxr-xr-xssg2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssg b/ssg
index 07a525c..8253b52 100755
--- a/ssg
+++ b/ssg
@@ -23,7 +23,7 @@ for src_file in ${src_files}; do
done
# Copy images
-if git rev-parse media; then
+if git rev-parse --verify media; then
git restore --source="${media_branch}" --worktree "img"
mv "img" "out"
fi
remember that computers suck.