wp cli - bash script wp-cli search-replace 0 replacements, but command-line 3000+

I'm runnning this command;sudo -u www-data wp search-replace www.siteurl www.newsiteurl --recurse-objects --skip-co

I'm runnning this command;

sudo -u www-data wp search-replace www.siteurl www.newsiteurl --recurse-objects --skip-columns=guid --skip-tables=wp_users

From command line: 3.456 replacements From bash-script: 0 replacements

the line in the bash script:

wp search-replace ${OLD_URL} ${NEW_URL} --recurse-objects --skip-columns=guid --skip-tables=wp_users

I've tried trimming the variables, I've tried ${VAR} and $VAR, and even --path=/path/to/site

The output table with details about replacements comes out on both bash and command-line versions. 0 replacements for the bash-script and 3.456 replacements from command line.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745499213a4630334.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信