minor fix

This commit is contained in:
Yan Lin 2025-12-09 01:53:42 +01:00
parent e1904b85d9
commit b1522d1554
2 changed files with 4 additions and 2 deletions

View file

@ -41,12 +41,13 @@ let
while [[ -s "$file" ]]; do
cmd="$(head -n 1 "$file")"
tail -n +2 "$file" > "$file.tmp" && mv "$file.tmp" "$file"
if [[ -n "$cmd" ]]; then
eval "$cmd"
zsh -i -c "$cmd"
fi
tail -n +2 "$file" > "$file.tmp" && mv "$file.tmp" "$file"
if [[ -s "$file" ]]; then
sleep "$gap_seconds"
fi