Skip to content

Commit ece89f3

Browse files
committed
Merge pull request #325 from QuentinPerez/brew2
scw.rb: Don't use system to call rm
2 parents e702812 + f9407c4 commit ece89f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/homebrew/scw.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def install
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/"
2121
# we remove our .scw-cache.db file, to clean the cache of scw
2222
# this file is created and handled by scw
23-
system "rm", "-f", "~/.scw-cache.db"
23+
rm_f "~/.scw-cache.db"
2424

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

0 commit comments

Comments
 (0)