Checking if the install directory is writtable and readable

This commit is contained in:
Roger Gonzalez 2023-10-25 23:15:40 -03:00
parent 95b2386148
commit 63bff4b94b
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 4 additions and 4 deletions

View File

@ -201,8 +201,8 @@ if [ ! -d "$install_directory" ]; then
fi
fi
if [ ! -w "$install_directory" ]; then
send_error_message "The directory \"$install_directory\" is not writtable by the current user. Set the correct permissions or try a different directory" ❌
if [ ! -w "$install_directory" ] || [ ! -r "$install_directory" ]; then
send_error_message "The directory \"$install_directory\" is not writable or readable by the current user. Set the correct permissions or try a different directory" ❌
fi
filename="$install_directory/docker-compose.yaml"

View File

@ -95,8 +95,8 @@ if [ ! -d "$install_directory" ]; then
fi
fi
if [ ! -w "$install_directory" ]; then
send_error_message "The directory \"$install_directory\" is not writtable by the current user. Set the correct permissions or try a different directory"
if [ ! -w "$install_directory" ] || [ ! -r "$install_directory" ]; then
send_error_message "The directory \"$install_directory\" is not writable or readable by the current user. Set the correct permissions or try a different directory"
fi
filename="$install_directory/docker-compose.yaml"