File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 40
40
if [[ ! -e tests/phpunit/includes/bootstrap.php ]]; then
41
41
42
42
echo Copying tests/phpunit/includes/bootstrap.php...
43
- cp " ${scaffold_path} " /bootstrap.php tests/phpunit/includes/bootstrap.php
44
-
45
43
echo " Please enter the basename slug of your plugin (ex. my-plugin/my-plugin.php):"
46
44
read plugin_name
47
45
48
- sed -i ' ' " s|my-plugin/my-plugin.php|$plugin_name |" tests/phpunit/includes/bootstrap.php
46
+ sed -e " s|my-plugin/my-plugin.php|$plugin_name |" " ${scaffold_path} " /bootstrap.php \
47
+ > tests/phpunit/includes/bootstrap.php
49
48
50
49
else
51
50
echo Not copying tests/phpunit/includes/bootstrap.php, already exists...
54
53
if [[ ! -e tests/phpunit/test-uninstall.php ]]; then
55
54
56
55
echo Copying tests/phpunit/test-uninstall.php...
57
- cp " ${scaffold_path} " /test-uninstall.php tests/phpunit/test-uninstall.php
58
-
59
56
echo " Please enter the prefix that your plugin uses in the database (ex. my_plugin):"
60
57
read prefix
61
58
62
- sed -i ' ' " s/myplugin/$prefix /" tests/phpunit/test-uninstall.php
59
+ sed -e " s/myplugin/$prefix /" " ${scaffold_path} " /test-uninstall.php \
60
+ > tests/phpunit/test-uninstall.php
63
61
64
62
else
65
63
echo Not copying tests/phpunit/test-uninstall.php, already exists...
You can’t perform that action at this time.
0 commit comments