Skip to content
Open

ex01 #91

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ex01/hello_world.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bats
if [ -n "$1" ]; then
echo "Hello, $1!"
else
echo "Hello, World!"
fi
Comment on lines +1 to +6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIX:

  • indentation

2 changes: 1 addition & 1 deletion ex01/hello_world_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bats
#!/usr/local/bin/bats

@test "When given no name, it should greet the world!" {
run bash hello_world.sh
Expand Down