summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-17 01:34:04 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-11-17 01:34:04 +0100
commit5f434f8de9657d3315be930f4d86cf27acc21738 (patch)
tree48bc3adcdbaded59d3823cba3168b9da21e31489 /scripts
parentd4f5432438e8bc8b0a61a00381a25584d9153438 (diff)
downloadkyblo-5f434f8de9657d3315be930f4d86cf27acc21738.tar.xz
publish: Remove extension from file
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publish2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/publish b/scripts/publish
index b761265..dc19211 100755
--- a/scripts/publish
+++ b/scripts/publish
@@ -11,7 +11,7 @@ main() {
local date="$(date -Id)"
mv "$file" entries/"$file"
- jq "[.[], { title: \"$title\", date: \"$date\", file: \"$file\" }]" <metadata.json | sponge metadata.json
+ jq "[.[], { title: \"$title\", date: \"$date\", file: \"${file%.rst}\" }]" <metadata.json | sponge metadata.json
}
main "$@"