diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-03-28 09:24:22 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-03-28 09:24:22 +0100 |
commit | d12cab3bb185ebe62b366fe36aca50ec085dbdee (patch) | |
tree | d74d2133bcd0f1161eb7d2cf10cd98fbeca23ecd /pkgs/build-support | |
parent | 8cc6897ae9fc80e0c3933ff13f15c2f240c00c6e (diff) |
buildRustCrate: remove ancient test guards
Let's leave x"" to the 1990s, where they belong
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/rust/build-rust-crate.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/rust/build-rust-crate.nix b/pkgs/build-support/rust/build-rust-crate.nix index 75563e34c3863..b07a09d635597 100644 --- a/pkgs/build-support/rust/build-rust-crate.nix +++ b/pkgs/build-support/rust/build-rust-crate.nix @@ -19,7 +19,7 @@ let makeDeps = dependencies: echo_build_heading() { start="" end="" - if [[ x"${colors}" = x"always" ]]; then + if [[ "${colors}" == "always" ]]; then start="$(printf '\033[0;1;32m')" #set bold, and set green. end="$(printf '\033[0m')" #returns to "normal" fi @@ -34,7 +34,7 @@ let makeDeps = dependencies: noisily() { start="" end="" - if [[ x"${colors}" = x"always" ]]; then + if [[ "${colors}" == "always" ]]; then start="$(printf '\033[0;1;32m')" #set bold, and set green. end="$(printf '\033[0m')" #returns to "normal" fi @@ -194,7 +194,7 @@ let makeDeps = dependencies: bold="" green="" boldgreen="" - if [[ "${colors}" = "always" ]]; then + if [[ "${colors}" == "always" ]]; then norm="$(printf '\033[0m')" #returns to "normal" bold="$(printf '\033[0;1m')" #set bold green="$(printf '\033[0;32m')" #set green |