summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2018-10-23 21:41:19 -0700
committerCole Mickens <cole.mickens@gmail.com>2018-10-23 21:41:19 -0700
commit8fbd6b96c7a4c46a0a4db5c5778a48dd081a9e00 (patch)
tree8ea00a70e87c3ea3622b5e31e18233f3a3f14bbc /update.sh
parenta947f1762b804d82ab8392f54e19d0fbf71e6fd6 (diff)
readme automation
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/update.sh b/update.sh
index 2bbccf6..76a8114 100755
--- a/update.sh
+++ b/update.sh
@@ -44,5 +44,7 @@ update "nixpkgs" "nixos" "nixpkgs-channels" "nixos-unstable"
nix-build build.nix
d="$(date -Iseconds)"
-sed -i -E "s/<!---->(.+)<!---->/<!---->${d}<!---->/g" README.md
+m="(.+)"
+t="<!--update-->"
+sed -i -E "s/${t}${m}${t}/${t}${d}${t}/g" README.md