We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce9b72b + 5f2b068 commit bd7015bCopy full SHA for bd7015b
ādocker/deploy.shā
@@ -499,14 +499,9 @@ create_dir_with_permission() {
499
fi
500
501
# Set directory permissions
502
- chmod -R "$permission" "$dir_path"
503
- if [ $? -ne 0 ]; then
504
- echo " ā ERROR Failed to set permissions $permission for directory $dir_path." >&2
505
- ERROR_OCCURRED=1
506
- return 1
+ if chmod -R "$permission" "$dir_path" 2>/dev/null; then
+ echo " š Directory $dir_path has been created and permissions set to $permission."
507
508
-
509
- echo " š Directory $dir_path has been created and permissions set to $permission."
510
}
511
512
prepare_directory_and_data() {
0 commit comments