Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-22 00:19:26 +00:00
parent 212b0d47b3
commit 7c0dbb8ba5
4 changed files with 55 additions and 25 deletions

17
tldr/until Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# until
> Simple shell loop that repeats until it receives zero as return value.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-until>.
- Execute a command until it succeeds:
`until {{command}}; do :; done`
- Wait for a systemd service to be active:
`until systemctl is-active --quiet {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}`