From fa8e02d6dbbd3de56b8115cdd0f0201184268f8b Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 31 Dec 2016 13:59:09 -0800 Subject: [PATCH] Updated SC2203 (markdown) --- SC2203.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/SC2203.md b/SC2203.md index f3d5482..670744c 100644 --- a/SC2203.md +++ b/SC2203.md @@ -28,12 +28,4 @@ Instead, you can iterate over the filenames you want with a loop, and apply your ### Exceptions: -If you know your glob will only ever match one file, you can check this explicitly and use the first file: - -``` -set -- backup/*.log -[[ $# -eq 1 ]] || { echo "There are too many matches."; exit 1; } -[[ file.log -nt "$1" ]] && echo "This is the latest file" -``` - -Alternatively, [[ignore]] this warning. \ No newline at end of file +None. \ No newline at end of file