From 13ef2ee5e196716d12c13cde9cc4645cb0333409 Mon Sep 17 00:00:00 2001 From: MykeWolf <32431502+MykeWolf@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:36:54 +0000 Subject: [PATCH] Pending changes exported from your codespace --- project02/file.txt | 0 project03/project02/file.txt | 0 what-are-case-statements/case_statement | 0 what-are-conditional-statements/is_number_even | 2 +- what-are-functions/add_numbers | 0 what-is-a-bash-script/hello_world | 0 what-is-a-variable/hello_variable | 6 +++++- 7 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 project02/file.txt create mode 100644 project03/project02/file.txt mode change 100644 => 100755 what-are-case-statements/case_statement mode change 100644 => 100755 what-are-conditional-statements/is_number_even mode change 100644 => 100755 what-are-functions/add_numbers mode change 100644 => 100755 what-is-a-bash-script/hello_world mode change 100644 => 100755 what-is-a-variable/hello_variable diff --git a/project02/file.txt b/project02/file.txt new file mode 100644 index 0000000..e69de29 diff --git a/project03/project02/file.txt b/project03/project02/file.txt new file mode 100644 index 0000000..e69de29 diff --git a/what-are-case-statements/case_statement b/what-are-case-statements/case_statement old mode 100644 new mode 100755 diff --git a/what-are-conditional-statements/is_number_even b/what-are-conditional-statements/is_number_even old mode 100644 new mode 100755 index e215ab3..238b590 --- a/what-are-conditional-statements/is_number_even +++ b/what-are-conditional-statements/is_number_even @@ -1,6 +1,6 @@ #!/bin/bash -number=25 +number=2 if [ $((number % 2)) -eq 0 ]; then diff --git a/what-are-functions/add_numbers b/what-are-functions/add_numbers old mode 100644 new mode 100755 diff --git a/what-is-a-bash-script/hello_world b/what-is-a-bash-script/hello_world old mode 100644 new mode 100755 diff --git a/what-is-a-variable/hello_variable b/what-is-a-variable/hello_variable old mode 100644 new mode 100755 index 89ae6a1..c516008 --- a/what-is-a-variable/hello_variable +++ b/what-is-a-variable/hello_variable @@ -2,4 +2,8 @@ # Welcome to your first Bash Script -echo 'Hello World!' \ No newline at end of file +hello_message='Hello you!' +current_dir=$(pwd) +readonly no_change_variable="blu" + +echo "$hello_message from $current_dir" \ No newline at end of file