summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSonic-Y3k <Sonic-Y3k@users.noreply.github.com>2020-12-05 20:06:24 +0100
committerGitHub <noreply@github.com>2020-12-05 20:06:24 +0100
commit03d0b296e1ac52af0290d3296dd6cd5b8e355d84 (patch)
tree334e21e663e0119bdeda4b516e7ebf7eb5b5e3a5 /src
parentca4408b343887581abd16b7f85b71f1abdb2d4e3 (diff)
downloadinvidious-03d0b296e1ac52af0290d3296dd6cd5b8e355d84.tar.gz
invidious-03d0b296e1ac52af0290d3296dd6cd5b8e355d84.tar.bz2
invidious-03d0b296e1ac52af0290d3296dd6cd5b8e355d84.zip
Fix invidious version for docker image
As Alpine-Linux per default uses the busybox date command, the -f option is not available and the build will fail.
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 0e8c2324..1a6a3bfa 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -64,7 +64,7 @@ HTTP_CHUNK_SIZE = 10485760 # ~10MB
CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}
CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }}
-CURRENT_VERSION = {{ "#{`git log -1 --format=%ci | date -I -f - | sed s/-/./g`.strip}" }}
+CURRENT_VERSION = {{ "#{`git log -1 --format=%ci | awk '{print $1}' | sed s/-/./g`.strip}" }}
# This is used to determine the `?v=` on the end of file URLs (for cache busting). We
# only need to expire modified assets, so we can use this to find the last commit that changes