Skip to content

Commit

Permalink
Remove Backup Files While Generating README File (#101)
Browse files Browse the repository at this point in the history
* use mv instead of cp.

* update readme.
  • Loading branch information
khajavi authored Jan 21, 2023
1 parent d6cc5bc commit 1636138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _ZIO SBT_ is an sbt plugin for ZIO projects. It provides high-level SBT utilitie
Add the following lines to your `plugin.sbt` file:

```scala
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.6")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.3.7")
```

Then you can enable it by using the following code in your `build.sbt` file:
Expand Down
2 changes: 1 addition & 1 deletion zio-sbt-website/src/main/scala/zio/sbt/WebsitePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ object WebsitePlugin extends sbt.AutoPlugin {
lazy val revertIndexChanges: Def.Initialize[Task[Unit]] = Def.task {
if (normalizedVersion.value.endsWith("-SNAPSHOT")) {
exit("rm docs/index.md".!)
exit("cp docs/index.md.bak docs/index.md".!)
exit("mv docs/index.md.bak docs/index.md".!)
}
}

Expand Down

0 comments on commit 1636138

Please sign in to comment.