Skip to content

Commit a93392a

Browse files
committed
Updated post install script
1 parent 9b1058f commit a93392a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ brews:
119119
install: |-
120120
bin.install "clace"
121121
post_install: |-
122-
# Create config directory if it doesn't exist
123-
if [ ! -f "\#{etc}/clace.toml" ]; then
124-
echo "Initializing Clace..."
125-
"\#{opt_bin}/clace" password > "\#{etc}/clace.toml"
126-
fi
122+
unless File.exist?("#{etc}/clace.toml")
123+
system "#{opt_bin}/clace password > #{etc}/clace.toml"
124+
end

0 commit comments

Comments
 (0)