From db0b029d0f49eaf56ae9da449196e1bf6cc8b8b4 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 1 Aug 2021 01:37:59 -0700 Subject: [PATCH] don't cut sha1 file --- home/zshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/home/zshrc b/home/zshrc index fc4e57b..6a471ee 100644 --- a/home/zshrc +++ b/home/zshrc @@ -49,15 +49,14 @@ zmodload zsh/mathfunc function { local a b - [ -s ~/.sh.sha1 ] && read -r b < ~/.sh.sha1 + [ -s ~/.sh.sha1 ] && read -r b _ < ~/.sh.sha1 ( cd ~/sh \ && print -l '#!/usr/bin/env false' '[ "${SOURCING:-0}" -gt 0 ] || exit 1' '' \ | cat - $(grep -lF 'YES_ZSH' *(.)) \ | tee ~/.sh \ ) | sha1sum - \ - | cut -d' ' -f1 \ | tee ~/.sh.sha1 \ - | read -r a + | read -r a _ [ "$a" = "$b" ] && touch ~/.sh.zwc || zrecompile -p ~/.sh }