Skip to content

Commit ca9fd72

Browse files
authored
Fix a bug (#13)
* Fix a bug * Fix a bug
1 parent 5e8e22c commit ca9fd72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commands/setup_theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ async function setup_theme(themeName) {
4747
return false;
4848
}
4949

50-
// Ensure the current working directory ends with wp-themes
50+
// Ensure the current working directory ends themes
5151
const cwd = process.cwd();
52-
if (!cwd.endsWith('wp-themes')) {
52+
if (!cwd.endsWith('wp-content/themes')) {
5353
console.log(
5454
chalk.red('\nThis command needs to be run inside a wp-themes folder.')
5555
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webredone/trb-cli",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a Theme Redone WordPress theme",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)