Skip to content

Commit

Permalink
Fix a bug (#13)
Browse files Browse the repository at this point in the history
* Fix a bug

* Fix a bug
  • Loading branch information
nikola-wd authored Dec 10, 2023
1 parent 5e8e22c commit ca9fd72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commands/setup_theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ async function setup_theme(themeName) {
return false;
}

// Ensure the current working directory ends with wp-themes
// Ensure the current working directory ends themes
const cwd = process.cwd();
if (!cwd.endsWith('wp-themes')) {
if (!cwd.endsWith('wp-content/themes')) {
console.log(
chalk.red('\nThis command needs to be run inside a wp-themes folder.')
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webredone/trb-cli",
"version": "3.0.3",
"version": "3.0.4",
"description": "TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a Theme Redone WordPress theme",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit ca9fd72

Please sign in to comment.