diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-10-25 23:15:40 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-10-25 23:15:40 -0300 |
commit | 63bff4b94b086d77e26ebfb97e2a74085e593b14 (patch) | |
tree | 91ce48f7159110c64beac74a9b453a493d96fc5e | |
parent | 95b2386148f22f02a1559c6002ce6101c08d1593 (diff) |
Checking if the install directory is writtable and readable
-rw-r--r-- | docs.org | 4 | ||||
-rw-r--r-- | install.sh | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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" @@ -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" |