Fix write dir

This commit is contained in:
localhost_frssoft 2022-08-06 19:17:12 +03:00
parent 9b9f27b2ff
commit f44519ee22

View file

@ -843,7 +843,7 @@ if [ "$daemon_mode" = 'yes' ]; then
write_status_action=$(/bin/ls $main_basedir/all_statuses/$instance/create 2>/dev/null)
if [ -n "$write_status_action" ]; then
dir_write_status=$(dirname "$write_status_action")
if [ -d "$dir_status/attachments" ]; then
if [ -d "$dir_write_status/attachments" ]; then
attach_id=''
echo "Uploading attachments..."
for attach in "$dir_write_status"/attachments/*; do