From cc65558ae67427ba9f1b9af9b5fb1ca52ee7c952 Mon Sep 17 00:00:00 2001 From: Vova Krut Date: Sat, 4 Dec 2021 05:03:20 +0200 Subject: [PATCH] Completed 1st exercice --- .gitmodules | 3 +++ ex01/bats | 1 + ex01/ex01/bats | 1 + ex01/hello_world.sh | 6 ++++++ 4 files changed, 11 insertions(+) create mode 100644 .gitmodules create mode 160000 ex01/bats create mode 160000 ex01/ex01/bats create mode 100755 ex01/hello_world.sh diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..de0ac24 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "ex01/ex01/bats"] + path = ex01/ex01/bats + url = https://github.com/sstephenson/bats.git diff --git a/ex01/bats b/ex01/bats new file mode 160000 index 0000000..0360811 --- /dev/null +++ b/ex01/bats @@ -0,0 +1 @@ +Subproject commit 03608115df2071fff4eaaff1605768c275e5f81f diff --git a/ex01/ex01/bats b/ex01/ex01/bats new file mode 160000 index 0000000..0360811 --- /dev/null +++ b/ex01/ex01/bats @@ -0,0 +1 @@ +Subproject commit 03608115df2071fff4eaaff1605768c275e5f81f diff --git a/ex01/hello_world.sh b/ex01/hello_world.sh new file mode 100755 index 0000000..7a79f61 --- /dev/null +++ b/ex01/hello_world.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ $1 = "" ]] ; then + echo "Hello, World!" +else + echo "Hello, ${1}!" +fi