interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
4k stars 854 forks source link

srdb.cli.php not compatible with GNU coreutils #337

Closed jnorell closed 4 years ago

jnorell commented 4 years ago

Running srdb.cli.php from cli with /usr/bin/env from GNU coreutils (debian 10 in my case) results in an error:

$ ./Search-Replace-DB/srdb.cli.php --help
/usr/bin/env: ‘php -q’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

Simple fix is change the shebang line to #!/usr/bin/env -S php -q as the error says.