summaryrefslogtreecommitdiff
path: root/update-ignore.d/01update-ignore
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-06 11:26:48 -0400
committerJoey Hess <joey@kitenet.net>2013-05-06 11:26:48 -0400
commit114e3ed40a7ddb3a6a5613aef6b9309dcba1df8c (patch)
tree14d262aa4b3ca9b718e5d69d9f5b6c5213c88480 /update-ignore.d/01update-ignore
parent0813f15a67733714c5c6a7650e97880837df773e (diff)
Call type -p in a more compatable way.
Diffstat (limited to 'update-ignore.d/01update-ignore')
-rwxr-xr-xupdate-ignore.d/01update-ignore4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-ignore.d/01update-ignore b/update-ignore.d/01update-ignore
index 7ad3caa..1b738c8 100755
--- a/update-ignore.d/01update-ignore
+++ b/update-ignore.d/01update-ignore
@@ -171,9 +171,9 @@ if [ -e "$file" ]; then
fi
fi
realfile="$file"
- if [ -n "`type -p tempfile`" ]; then
+ if type -p tempfile >/dev/null 2>&1; then
tempfile="tempfile"
- elif [ -n "`type -p mktemp`" ]; then
+ elif type -p mktemp >/dev/null 2>&1; then
tempfile="mktemp"
else
echo "etckeeper warning: can't find tempfile or mktemp" >&2