generator-plugin-wp
generator-plugin-wp copied to clipboard
input request from install-wp-tests.sh hangs dockunit
+echo 'Hey, this is going to create a databse or stomp out '"$DB_NAME"' if it exists, continue? [y/n]'
+read -r GO_ON
+
+if [[ 'y' != "$GO_ON" ]]; then
+ echo 'See ya! http://bit.ly/2sxOB0u'
+ exit;
+fi
This part of the code hangs the dock container if you use dockunit.
I'm not familiar very familiar with dockunit but a quick search got me up to speed. My assumption is that the prompt is problematic as it's spinning up environ and running tests.
Would simply adding a "yes" flag or something of the sort fix this?
It basically stops and waits for the input so a "yes" flag should solve it.