diff --git a/examples/DDDB/scripts/extract_dddb.sh b/examples/DDDB/scripts/extract_dddb.sh
index 5a1fabe4f21af958613c0ce6d450a17c9391a84b..0ae10ea2a66d1fb23b8cec231e4265114f825d1c 100755
--- a/examples/DDDB/scripts/extract_dddb.sh
+++ b/examples/DDDB/scripts/extract_dddb.sh
@@ -18,7 +18,7 @@ echo "+ ------------------------------------------------------------------+";
 echo "|   Starting DDDB extraction from tar file                          |";
 echo "+ ------------------------------------------------------------------+";
 #
-if test -z "$USER"; then
+if test -n "$USER"; then
     target=/tmp/$USER;
 else
     target=/tmp;
diff --git a/examples/DDDB/scripts/run_dddb.sh b/examples/DDDB/scripts/run_dddb.sh
index c36cd2c6292601f58e894c669ac74eddad949480..b563e7f50a81dcfab2951a7ab0e5d03f4944b514 100755
--- a/examples/DDDB/scripts/run_dddb.sh
+++ b/examples/DDDB/scripts/run_dddb.sh
@@ -20,7 +20,7 @@ echo "|   Starting DDDB plugin executor....                               |";
 #echo "|                                                                   |";
 echo "+ ------------------------------------------------------------------+";
 #
-if test -z "$USER"; then
+if test -n "$USER"; then
     target=/tmp/$USER;
 else
     target=/tmp;