diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-17 01:34:04 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-17 01:34:04 +0100 |
commit | 5f434f8de9657d3315be930f4d86cf27acc21738 (patch) | |
tree | 48bc3adcdbaded59d3823cba3168b9da21e31489 /scripts | |
parent | d4f5432438e8bc8b0a61a00381a25584d9153438 (diff) | |
download | kyblo-5f434f8de9657d3315be930f4d86cf27acc21738.tar.xz |
publish: Remove extension from file
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish | 2 |
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 "$@" |