diff options
author | Phillip Cloud <cloud@standard.ai> | 2021-02-27 07:27:31 -0500 |
---|---|---|
committer | Phillip Cloud <cloud@standard.ai> | 2021-02-27 07:27:31 -0500 |
commit | ab2b32cd1aeb571b860aaf0466d275efdf6f7b19 (patch) | |
tree | c723d114c1a6b0cf73dfb20b64540ae25c5daae3 /pkgs/tools/admin/pulumi | |
parent | 0dfc707376a9668f4f00d6bb7a85fd22b4b23acf (diff) |
pulumi-bin: refactor output creation
Diffstat (limited to 'pkgs/tools/admin/pulumi')
-rwxr-xr-x | pkgs/tools/admin/pulumi/update.sh | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/tools/admin/pulumi/update.sh b/pkgs/tools/admin/pulumi/update.sh index a1d04ef24022d..061f3b1438ec2 100755 --- a/pkgs/tools/admin/pulumi/update.sh +++ b/pkgs/tools/admin/pulumi/update.sh @@ -56,7 +56,8 @@ function genSrcs() { done } -cat <<EOF > data.nix +{ + cat <<EOF # DO NOT EDIT! This file is generated automatically by update.sh { }: { @@ -64,14 +65,14 @@ cat <<EOF > data.nix pulumiPkgs = { x86_64-linux = [ EOF -genMainSrc "linux" >> data.nix -genSrcs "linux" >> data.nix -echo " ];" >> data.nix - -echo " x86_64-darwin = [" >> data.nix -genMainSrc "darwin" >> data.nix -genSrcs "darwin" >> data.nix -echo " ];" >> data.nix -echo " };" >> data.nix -echo "}" >> data.nix + genMainSrc "linux" + genSrcs "linux" + echo " ];" + echo " x86_64-darwin = [" + genMainSrc "darwin" + genSrcs "darwin" + echo " ];" + echo " };" + echo "}" +} > data.nix |