Skip to content

Commit 485014d

Browse files
Sijaysbaddaden
authored andcommitted
Use read_file macro instead using OS-dependent cat
1 parent 81ea693 commit 485014d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/version.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Shards
2-
VERSION = {{ `cat #{__DIR__}/../VERSION`.stringify.chomp }}
2+
VERSION = {{ read_file("#{__DIR__}/../VERSION").chomp }}
33
BUILD_SHA1 = {{ `git log --format=%h -n 1 2>/dev/null || echo ""`.stringify.chomp }}
44
BUILD_DATE = {{ `date -u +'%Y-%m-%d'`.stringify.chomp }}
55

0 commit comments

Comments
 (0)