From 23d56da262c1388fede06b720d856d665c5e6201 Mon Sep 17 00:00:00 2001 From: Zouhair AMAZZAL Date: Tue, 13 Dec 2022 16:09:30 +0100 Subject: [PATCH] fix(hello-devops) fix subject and tests name --- .../{hello_devops_test.sh => hello-devops_test.sh} | 4 ++-- .../solutions/{hello_devops.sh => hello-devops.sh} | 0 subjects/devops/hello_devops/README.md | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) rename sh/tests/{hello_devops_test.sh => hello-devops_test.sh} (83%) rename sh/tests/solutions/{hello_devops.sh => hello-devops.sh} (100%) diff --git a/sh/tests/hello_devops_test.sh b/sh/tests/hello-devops_test.sh similarity index 83% rename from sh/tests/hello_devops_test.sh rename to sh/tests/hello-devops_test.sh index 62699e274..f666472f4 100755 --- a/sh/tests/hello_devops_test.sh +++ b/sh/tests/hello-devops_test.sh @@ -5,14 +5,14 @@ set -euo pipefail IFS=' ' -FILENAME="student/hello_devops.sh" +FILENAME="student/hello-devops.sh" # True if FILE exists and is a regular file if [ -f ${FILENAME} ]; then # FILE exists and it's not empty if [ -s ${FILENAME} ]; then submitted=$(bash $FILENAME) - expected=$(bash solutions/hello_devops.sh) + expected=$(bash solutions/hello-devops.sh) diff <(echo "$submitted") <(echo "$expected") | cat -t else echo "The file exist but is empty" diff --git a/sh/tests/solutions/hello_devops.sh b/sh/tests/solutions/hello-devops.sh similarity index 100% rename from sh/tests/solutions/hello_devops.sh rename to sh/tests/solutions/hello-devops.sh diff --git a/subjects/devops/hello_devops/README.md b/subjects/devops/hello_devops/README.md index 878d40593..8fcc6872d 100644 --- a/subjects/devops/hello_devops/README.md +++ b/subjects/devops/hello_devops/README.md @@ -28,7 +28,7 @@ This command needs to be adapted with **your own username**. #### 2- set -Once the repository is created, use you code editor to write your first shell script called `hello_devops.sh` +Once the repository is created, use you code editor to write your first shell script called `hello-devops.sh` When executed, this script must print `Hello 01-user!`, where `01-user` is your username. @@ -37,22 +37,22 @@ When executed, this script must print `Hello 01-user!`, where `01-user` is your If the username is `01-user`: ```console -$ bash hello_devops.sh +$ bash hello-devops.sh Hello 01-user! $ ``` #### 3- go-say-hello -After that the `hello_devops.sh` is executing correctly, it needs to be uploaded to the repository with the following commands: +After that the `hello-devops.sh` is executing correctly, it needs to be uploaded to the repository with the following commands: -1. `git add hello_devops.sh` +1. `git add hello-devops.sh` 2. `git commit -m "My very first commit"` 3. `git push` Once these steps are applied, the file can now be submitted for grading on the platform by clicking on the "RUN INTRODUCTION TEST" button. -This action will run the tests on your submitted `hello_devops.sh` file. +This action will run the tests on your submitted `hello-devops.sh` file. ### Recommendation