summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs.org4
-rw-r--r--install.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/docs.org b/docs.org
index ee85bf9..406c739 100644
--- a/docs.org
+++ b/docs.org
@@ -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"
diff --git a/install.sh b/install.sh
index 0eef3cd..8bf6514 100644
--- a/install.sh
+++ b/install.sh
@@ -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"