diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 1141db0..58ad72d 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -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