Fissato bachetto
This commit is contained in:
parent
66a3e58ce1
commit
3c6a1bb6ea
1 changed files with 2 additions and 2 deletions
|
@ -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 ' ' )"
|
||||
|
|
Loading…
Reference in a new issue