diff --git a/cli.mjs b/cli.mjs index db2a504..a67907d 100755 --- a/cli.mjs +++ b/cli.mjs @@ -32,6 +32,7 @@ $.api() .command("pull", "Update article list") .option("--git", "Update git repository") .action(async function pull({ git: is_git= false }){ + if(is_git) s.run`git pull --force`; const { changed }= await sitemap().then(toRSS); echo("Changed files:", changed.length ? changed.join(", ") : "—"); if(is_git) gitCommit(changed, "pull"); diff --git a/package.json b/package.json index 1ead57a..4cffb0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pagenotfound-cli", - "version": "1.1.0", + "version": "1.1.1", "description": "Utility primary for generating RSS feed for Pagenotfound", "bin": "cli.js", "scripts": {