From 421402a18750026c4ecbef7986a1a9808e34aeaf Mon Sep 17 00:00:00 2001 From: Jeroen Vermeulen Date: Wed, 21 Mar 2018 13:08:36 +0100 Subject: [PATCH] Added progress (if on terminal) --- dummy_products.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dummy_products.php b/dummy_products.php index 076d8d0..3f70c6b 100644 --- a/dummy_products.php +++ b/dummy_products.php @@ -99,4 +99,12 @@ } catch (Exception $e) { echo "ERROR: {$e}\n"; } -} \ No newline at end of file + + if (isset($_SERVER['TERM'])) { + echo "."; + } +} + +if (isset($_SERVER['TERM'])) { + echo "\n"; +}