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