From 14f9378d55af48e4622a9daa5d9c4632a9a2eafc Mon Sep 17 00:00:00 2001 From: Led Date: Sun, 14 Dec 2014 15:13:12 +0200 Subject: Remove '-p' option of 'type' builtin command in shell scripts. That option may be unsupported in some POSIX-complete shells. --- uninit.d/50vcs-uninit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uninit.d/50vcs-uninit') diff --git a/uninit.d/50vcs-uninit b/uninit.d/50vcs-uninit index b330f1b..06317c5 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 || type -p tempfile >/dev/null 2>&1; then + if which tempfile >/dev/null 2>&1 || type tempfile >/dev/null 2>&1; then tempfile="tempfile" - elif which mktemp >/dev/null 2>&1 || type -p mktemp >/dev/null 2>&1; then + elif which mktemp >/dev/null 2>&1 || type mktemp >/dev/null 2>&1; then tempfile="mktemp" else echo "etckeeper warning: can't find tempfile or mktemp" >&2 -- cgit v1.2.3