Nix compatibility fixes
This commit is contained in:
parent
4e8e027785
commit
353a4a1f4e
9 changed files with 63 additions and 21 deletions
|
|
@ -217,6 +217,12 @@ do_reexec() {
|
|||
fi
|
||||
}
|
||||
|
||||
in_nix_environment() {
|
||||
for path in ${PATH//:/ }; do
|
||||
realpath -q $path | grep -q '^/nix/store/' && break
|
||||
done
|
||||
}
|
||||
|
||||
# start execution
|
||||
|
||||
set -e
|
||||
|
|
@ -368,6 +374,8 @@ do
|
|||
esac
|
||||
done
|
||||
|
||||
in_nix_environment && parity --help >/dev/null 2>&1 || SKIP_PARITY=1
|
||||
|
||||
[ "$MMGEN_DISABLE_COLOR" ] || {
|
||||
RED="\e[31;1m" GREEN="\e[32;1m" YELLOW="\e[33;1m" BLUE="\e[34;1m" MAGENTA="\e[35;1m" CYAN="\e[36;1m"
|
||||
RESET="\e[0m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue