We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 25584d9c authored by clint's avatar clint

avoid periods of empty dump files in data/ directory

parent d745f43b
cd /home/librefm/turtle/data/ || exit 1
cd /home/librefm/turtle/data/wip || exit 1
#we rely on lack of whitespace here
LIST=$(echo "SELECT DISTINCT username FROM Users;" | psql -q -t)
......@@ -10,4 +10,6 @@ for I in $LIST; do
cat /home/librefm/scripts/license > $I.text.utf8
echo 'COPY (SELECT * FROM Scrobbles where username='"'$I'"') TO STDOUT WITH CSV HEADER;' | psql -q >> $I.text.utf8
mv -- $I /home/librefm/turtle/data/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment