From 95a76a03ebac1db33fa0b3e4bdcca097b266e286 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 2 Sep 2016 11:22:22 +0200 Subject: [PATCH] bin/dbq-dir2sqlite --- bin/dbq-dir2sqlite | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dbq-dir2sqlite b/bin/dbq-dir2sqlite index 3fe2b40a..275d95de 100755 --- a/bin/dbq-dir2sqlite +++ b/bin/dbq-dir2sqlite @@ -106,7 +106,7 @@ done # Main # ################################################################################# -. "$NB_ROOT/etc/profile" || exit +#. "$NB_ROOT/etc/profile" || exit #cd "$DIR_NAME" || exit TMP_DIR="/tmp" @@ -121,7 +121,7 @@ for vars in $(dbq a=ls type='!sqlite' out=sh); do [ -w "${id}.db" ] || continue [ "$VERBOSE" -gt 0 ] && printf '%s : ' "$id" - dbq2sqlite db="$id" 2>/dev/null > "$TMP_DB" || continue + dbq f=text a=db.dump db.type=sqlite db="$id" 2>/dev/null > "$TMP_DB" || continue ret=$? if [ ! -s "$TMP_DB" -o "$ret" != "0" ];then [ "$VERBOSE" -gt 0 ] && echo "failed" -- 2.47.3