1
0
Fork 0

Fissato bachetto

This commit is contained in:
pezcurrel 2019-12-18 16:33:12 +01:00
parent 66a3e58ce1
commit 3c6a1bb6ea

View file

@ -159,10 +159,10 @@ if [ $INTERACTIVE -eq 1 ]; then
[ $? -eq 0 ] && ask=0
done
if [ "$inp" == "" ] || [ "$inp" == "s" ] || [ "$inp" == "S" ]; then
buf+="$line"
buf+="$line$IFS"
fi
done
newblocks="$buf"
newblocks=$(echo "$buf" | head -n -1)
fi
echo "$newblocks" | PGPASSWORD="$DB_PASS" psql -h "$DB_HOST" -p "$DB_PORT" -d "$DB_NAME" -U "$DB_USER" -A -t -c "COPY domain_blocks ( domain, created_at, updated_at, severity, reject_media, reject_reports, public_comment ) FROM STDIN WITH ( FORMAT text, DELIMITER ' ' )"