summaryrefslogtreecommitdiff
path: root/update-ignore.d/01update-ignore
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-08 22:36:37 -0400
committerJoey Hess <joey@kitenet.net>2013-05-08 22:36:37 -0400
commit15d892407b0bdcd8fd5bad28eb3a541955bfe5bd (patch)
treea7c9fd6c05c1e146a4b05caa7053ea7bc9bccc46 /update-ignore.d/01update-ignore
parent7b0e85dd0081f0aeb90e4f82d958765f3ca5f6ee (diff)
Fix type -p bashism that crept in via recent patches. Closes: #707319
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 1b738c8..18520dc 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 type -p tempfile >/dev/null 2>&1; then
+ if which tempfile >/dev/null 2>&1; then
tempfile="tempfile"
- elif type -p mktemp >/dev/null 2>&1; then
+ elif which mktemp >/dev/null 2>&1; then
tempfile="mktemp"
else
echo "etckeeper warning: can't find tempfile or mktemp" >&2