From 879b3ed1ac7a1f40174d3bf5b804c0029f0cb360 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 27 Sep 2001 06:36:47 +0000 Subject: Don't try to chmod the installer if it's already executable. This is needed in case the package builder doesn't own the distfile. --- audio/realplayer/scripts/pre-extract | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'audio/realplayer') diff --git a/audio/realplayer/scripts/pre-extract b/audio/realplayer/scripts/pre-extract index 82adef21797..9096487f4ba 100644 --- a/audio/realplayer/scripts/pre-extract +++ b/audio/realplayer/scripts/pre-extract @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: pre-extract,v 1.1.1.1 2000/12/25 09:35:59 jlam Exp $ +# $NetBSD: pre-extract,v 1.2 2001/09/27 06:36:47 jlam Exp $ # The number of seconds to pause before continuing with the extraction # process. @@ -35,4 +35,7 @@ EOF sleep ${delay} -${CHMOD} +x ${RP_INSTALLER} +if [ ! -x ${RP_INSTALLER} ] +then + ${CHMOD} +x ${RP_INSTALLER} +fi -- cgit v1.2.3