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