Skip to content

Commit 59dcfa6

Browse files
committed
only use first 5 characters of SHA
1 parent e76730d commit 59dcfa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/publish

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ epub = EeePub.make do
101101
nav navigation
102102
end
103103

104-
sha = `git rev-parse HEAD`
104+
sha = `git rev-parse HEAD`[0..5]
105105
epub.save("#{GUIDE_DIR}/ebooks/rgh-#{today}_#{sha}.epub")
106106
FileUtils.rm_rf("#{TEMP_DIR}")

0 commit comments

Comments
 (0)