mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-09-17 10:27:08 +03:00
Only attempt to copy examples for preferred version (#160)
These files are only copied into the nix build for the preferred version, so for all other versions `cp` would complain that these files do not exist.
This commit is contained in:
parent
a4126b7f8f
commit
f9827967f4
@ -21,11 +21,11 @@ if DIR=$(nix-build release.nix --attr "\"${VERSION}\"" --no-out-link); then
|
||||
chmod -R u+w "${BASE}/types"
|
||||
cp -r "${DIR}/schemas" "${BASE}"
|
||||
chmod -R u+w "${BASE}/schemas"
|
||||
cp -r "${DIR}/examples" "${BASE}"
|
||||
chmod -R u+w "${BASE}/examples"
|
||||
cp "${DIR}/types.dhall" "${DIR}/typesUnion.dhall" "${DIR}/defaults.dhall" "${DIR}/schemas.dhall" "${DIR}/package.dhall" "${BASE}"
|
||||
chmod u+w "${BASE}/types.dhall" "${BASE}/typesUnion.dhall" "${BASE}/defaults.dhall" "${BASE}/schemas.dhall" "${BASE}/package.dhall"
|
||||
if [ "${VERSION}" == "${PREFERRED_VERSION}" ]; then
|
||||
cp -r "${DIR}/examples" "${BASE}"
|
||||
chmod -R u+w "${BASE}/examples"
|
||||
cp "${DIR}/Prelude.dhall" "${DIR}/README.md" "${BASE}"
|
||||
chmod u+w "${BASE}/Prelude.dhall" "${BASE}/README.md"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user