minor fix
This commit is contained in:
parent
e1904b85d9
commit
b1522d1554
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue