From 4188f2c91d8e6f50a7960e974932f459918578c0 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Fri, 13 May 2016 18:12:58 +0100 Subject: [PATCH] terraform: fixes the plugins fixes the globbing so that the plugins are prefixed properly --- pkgs/top-level/go-packages.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index fca74bcdcc41..a161a2d33e7f 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -3765,7 +3765,12 @@ let sha256 = "1mf98hagb0yp40g2mbar7aw7hmpq01clnil6y9khvykrb33vy0nb"; postInstall = '' - for i in $bin/bin/{provider,provisioner}-*; do mv $i $bin/bin/terraform-$(basename $i); done + # prefix all the plugins with "terraform-" + for i in $bin/bin/*; do + if [[ ! $(basename $i) =~ terraform* ]]; then + mv -v $i $bin/bin/terraform-$(basename $i); + fi + done ''; };