about summary refs log tree commit diff stats
path: root/mu
blob: cd4019c5bbe26b4eff4b6a2369fcee9b9e33d56b (plain) (blame)
1
2
3
4
5
6
7
8
#!/usr/bin/env bash
#
# Compile mu if necessary before running it.

# show make output only if something needs doing
make -q || make >&2 || exit 1

./mu_bin "$@"
pan class="p">, fallback string) string { // We use os.LookupEnv instead of using os.GetEnv and checking // if the length equals 0 because environment variable can be // set and be of length 0. User could've set key="" which // means the variable was set but the length is 0. There is no // reason why user would want to do this over here though. value, exists := os.LookupEnv(key) if !exists { value = fallback } return value }