Skip to content

Commit

Permalink
Small fix to generate script (#171)
Browse files Browse the repository at this point in the history
Make sure that `rm` doesn't fail if the release has never been generated before
  • Loading branch information
Gabriella439 authored Jul 7, 2021
1 parent 5227c6f commit 8c24915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ kubernetes_version () {

DIR="$(nix-build release.nix --attr "\"${VERSION}\"" --no-out-link)"

rm -r "${VERSION}"
rm -r -f -- "${VERSION}"
mkdir -p "${VERSION}"

for FILE in defaults types schemas types.dhall typesUnion.dhall defaults.dhall schemas.dhall package.dhall; do
Expand All @@ -30,7 +30,7 @@ kubernetes () {
examples () {
DIR="$(nix-build release.nix --attr examples)"

rm -r ./examples
rm -r -f -- ./examples

cp -r "${DIR}/" ./examples
chmod -R u+w ./examples
Expand Down

0 comments on commit 8c24915

Please sign in to comment.