mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 11:00:40 +00:00
Update cheatsheets
This commit is contained in:
@@ -13,15 +13,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`test "{{$MY_VAR}}" = "{{/bin/zsh}}"`
|
||||
|
||||
- Test if a given variable is empty:
|
||||
- Test if a given variable is empty ([z]ero length):
|
||||
|
||||
`test -z "{{$GIT_BRANCH}}"`
|
||||
|
||||
- Test if a file exists:
|
||||
- Test if a [f]ile exists:
|
||||
|
||||
`test -f "{{path/to/file_or_directory}}"`
|
||||
|
||||
- Test if a directory does not exist:
|
||||
- Test if a [d]irectory does not exist:
|
||||
|
||||
`test ! -d "{{path/to/directory}}"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user