Skip to content

Commit

Permalink
fixed confusing cleanCmd name
Browse files Browse the repository at this point in the history
  • Loading branch information
sambukowski committed Apr 2, 2024
1 parent 2c5c12c commit bcce2c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/devtools/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func runClean(cmd *cobra.Command, args []string) {
instanceDir := filepath.Join(defaultDir, instance)
dataDir := filepath.Join(instanceDir, DataDirName)

cleanCmd := exec.Command("rm", "-rf", dataDir)
if err := cleanCmd.Run(); err != nil {
rmCmd := exec.Command("rm", "-rf", dataDir)
if err := rmCmd.Run(); err != nil {
log.WithError(err).Error("Error running rm")
panic(err)
}
Expand All @@ -59,8 +59,8 @@ func runCleanAll() {
// TODO: allow for configuration of this directory
defaultDataDir := filepath.Join(homePath, ".astria")

cleanCmd := exec.Command("rm", "-rf", defaultDataDir)
if err := cleanCmd.Run(); err != nil {
rmCmd := exec.Command("rm", "-rf", defaultDataDir)
if err := rmCmd.Run(); err != nil {
log.WithError(err).Error("Error running rm")
panic(err)
}
Expand Down

0 comments on commit bcce2c4

Please sign in to comment.