summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2021-06-14 21:06:38 +0000
committerepoch <epoch@hack.thebackupbox.net>2021-06-14 21:06:38 +0000
commit5d31e65d2ea0772afa23c35461753ba276f2e379 (patch)
tree68d63ac4b9eb51c96daf3b292e0f278ba6fa9d9d
parentef335722beec14e6bdb30e263629b3caa23e591b (diff)
downloaduritools-5d31e65d2ea0772afa23c35461753ba276f2e379.tar.gz
uritools-5d31e65d2ea0772afa23c35461753ba276f2e379.zip
added default PREFIX value to something "sane"
-rwxr-xr-xurnresolve1
1 files changed, 1 insertions, 0 deletions
diff --git a/urnresolve b/urnresolve
index 864859b..d2ae38a 100755
--- a/urnresolve
+++ b/urnresolve
@@ -1,4 +1,5 @@
#!/bin/sh
+export PREFIX="${PREFIX:-/usr/local}"
echo "urnstart: working on:" "$1" >&2
urn="$(printf '%s\n' "$1" | cut -d: -f1)"
if [ "$urn" != "urn" ];then