From 07ea8e1f99c1fa521033567322ac00987719bebd Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 11 Sep 2022 18:36:38 +0200 Subject: [PATCH] checks: Do virli TP1 checks --- checks-6.sh | 1 + checks-virli-tp1.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 120000 checks-6.sh create mode 100644 checks-virli-tp1.sh diff --git a/checks-6.sh b/checks-6.sh new file mode 120000 index 0000000..b88cb24 --- /dev/null +++ b/checks-6.sh @@ -0,0 +1 @@ +checks-virli-tp1.sh \ No newline at end of file diff --git a/checks-virli-tp1.sh b/checks-virli-tp1.sh new file mode 100644 index 0000000..626d1c5 --- /dev/null +++ b/checks-virli-tp1.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +STATUS=0 + +echo -ne "ยง 1\tdocker-compose.yml\t\t\t" +VCP=$(find -maxdepth 1 -name "docker-compose.yml" | head -1) +[ -f "$VCP" ] || { echo "NOT FOUND"; STATUS=1; } +[ -f "$VCP" ] && echo "found " + +exit $STATUS