Skip to content

Commit 7cda2d8

Browse files
author
Quentin Perez
committed
Remove cache after install with brew
1 parent 6fc6ea8 commit 7cda2d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/homebrew/scw.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def install
1818
(buildpath/"src/github.com/scaleway/scaleway-cli").install Dir["*"]
1919

2020
system "go", "build", "-o", "#{bin}/scw", "-v", "-ldflags", "-X github.com/scaleway/scaleway-cli/pkg/scwversion.GITCOMMIT=homebrew", "github.com/scaleway/scaleway-cli/cmd/scw/"
21+
# we remove our .scw-cache.db file, to clean the cache of scw
22+
# this file is created and handled by scw
23+
system "rm", "-f", "~/.scw-cache.db"
2124

2225
bash_completion.install "src/github.com/scaleway/scaleway-cli/contrib/completion/bash/scw"
2326
zsh_completion.install "src/github.com/scaleway/scaleway-cli/contrib/completion/zsh/_scw"

0 commit comments

Comments
 (0)