Clean up function snippet added with tests.

This commit is contained in:
swg
2024-02-17 22:45:29 +01:00
parent ac708eb438
commit e3f51c862c
2 changed files with 63 additions and 1 deletions

View File

@@ -10,4 +10,19 @@ function call:
```
check_folder_for_extension ./cffe_test "*.jpg *.JPG"
```
For multiple extensions (or other parts of the file name to match) space separate the list, like shown above.
For multiple extensions (or other parts of the file name to match) space separate the list, like shown above.
## Clean up
Cleaning up in a script and exit with a given exit code.
function call:
```
clean_up 0;
```
For testing the function call the script with:
```
clean_up.sh test
```