summaryrefslogtreecommitdiff
path: root/uninit.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-15 14:20:17 -0400
committerJoey Hess <joey@kitenet.net>2013-05-15 14:20:17 -0400
commit819d09a251de910dfa1afc421d5d8d57c3f5fcb0 (patch)
treea1df55af4d80f320616df84e091475051b86667a /uninit.d
parentef5dbb625a7d2a00bf2242dcffe109e9d8665785 (diff)
Deal with unix^wlinux portability nonsense.
Diffstat (limited to 'uninit.d')
-rwxr-xr-xuninit.d/50vcs-uninit4
1 files changed, 2 insertions, 2 deletions
diff --git a/uninit.d/50vcs-uninit b/uninit.d/50vcs-uninit
index d717196..93f5df7 100755
--- a/uninit.d/50vcs-uninit
+++ b/uninit.d/50vcs-uninit
@@ -21,9 +21,9 @@ if ! grep -q "$managed_by_etckeeper" "$file"; then
exit 0
else
realfile="$file"
- if which tempfile >/dev/null 2>&1; then
+ if which tempfile >/dev/null 2>&1 || type -p tempfile >/dev/null 2>&1;; then
tempfile="tempfile"
- elif which mktemp >/dev/null 2>&1; then
+ elif which mktemp >/dev/null 2>&1 || type -p mktemp >/dev/null 2>&1; then
tempfile="mktemp"
else
echo "etckeeper warning: can't find tempfile or mktemp" >&2