forked from lix-project/lix
Merge pull request #2481 from graham-at-target/patch-1
install script: remove unportable command check, fixup errant escape
This commit is contained in:
commit
7a9ac91a43
|
@ -11,14 +11,14 @@ oops() {
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpDir="$(mktemp -d -t nix-binary-tarball-unpack.XXXXXXXXXX || \
|
tmpDir="$(mktemp -d -t nix-binary-tarball-unpack.XXXXXXXXXX || \
|
||||||
oops "Can\'t create temporary directory for downloading the Nix binary tarball")"
|
oops "Can't create temporary directory for downloading the Nix binary tarball")"
|
||||||
cleanup() {
|
cleanup() {
|
||||||
rm -rf "$tmpDir"
|
rm -rf "$tmpDir"
|
||||||
}
|
}
|
||||||
trap cleanup EXIT INT QUIT TERM
|
trap cleanup EXIT INT QUIT TERM
|
||||||
|
|
||||||
require_util() {
|
require_util() {
|
||||||
type "$1" > /dev/null 2>&1 || which "$1" > /dev/null 2>&1 ||
|
type "$1" > /dev/null 2>&1 || command -v "$1" > /dev/null 2>&1 ||
|
||||||
oops "you do not have '$1' installed, which I need to $2"
|
oops "you do not have '$1' installed, which I need to $2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue