git.iko.soy/typeable/nixpkgs
on master help sign in
buildRustCrate: remove ancient test guards

Let's leave x"" to the 1990s, where they belong

commitd12cab3bb185ebe62b366fe36aca50ec085dbdee authorJörg Thalheim <joerg@thalheim.io> dateWed 28 Mar 2018, 09:24 (9 years ago) parent8cc6897
1 file changed+3−3
pkgs/build-support/rust/build-rust-crate.nix+3−3
pkgs/build-support/rust/build-rust-crate.nix+3−3
@@ -19,7 +19,7 @@ let makeDeps = dependencies:
1919 echo_build_heading() {
2020 start=""
2121 end=""
22− if [[ x"${colors}" = x"always" ]]; then
22+ if [[ "${colors}" == "always" ]]; then
2323 start="$(printf '\033[0;1;32m')" #set bold, and set green.
2424 end="$(printf '\033[0m')" #returns to "normal"
2525 fi
@@ -34,7 +34,7 @@ let makeDeps = dependencies:
3434 noisily() {
3535 start=""
3636 end=""
37− if [[ x"${colors}" = x"always" ]]; then
37+ if [[ "${colors}" == "always" ]]; then
3838 start="$(printf '\033[0;1;32m')" #set bold, and set green.
3939 end="$(printf '\033[0m')" #returns to "normal"
4040 fi
@@ -194,7 +194,7 @@ let makeDeps = dependencies:
194194 bold=""
195195 green=""
196196 boldgreen=""
197− if [[ "${colors}" = "always" ]]; then
197+ if [[ "${colors}" == "always" ]]; then
198198 norm="$(printf '\033[0m')" #returns to "normal"
199199 bold="$(printf '\033[0;1m')" #set bold
200200 green="$(printf '\033[0;32m')" #set green