From fcfbc0c9a62c298ad216187648228bcb73a20007 Mon Sep 17 00:00:00 2001 From: 100daysofdevops <47483190+100daysofdevops@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:41:53 -0700 Subject: [PATCH] Update check_if_file_directory_present_v3.sh --- .../check_if_file_directory_present_v3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_if_file_directory_present/check_if_file_directory_present_v3.sh b/check_if_file_directory_present/check_if_file_directory_present_v3.sh index 60781a5..f940a55 100644 --- a/check_if_file_directory_present/check_if_file_directory_present_v3.sh +++ b/check_if_file_directory_present/check_if_file_directory_present_v3.sh @@ -30,7 +30,7 @@ read -p "Enter the name of file or directory (press enter for current directory) # Use current directory if user input is empty if [ -z "$input_file_or_dir" ] then - input_file_or_dir="." + input_file_or_dir=$(pwd) fi # Call the function with the user input