]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- do not add duplicate shebangs
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Apr 2010 15:17:05 +0000 (15:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti.spec -> 1.119

cacti.spec

index b93d94f65a5acc17ea88b4e67c9e667504be502b..57b2836ee59ea12064a1291521217198f3cf8721 100644 (file)
@@ -146,11 +146,12 @@ rm -f log/.htaccess
 rm -f cli/.htaccess
 rm -f rra/.placeholder
 
-%{__sed} -i -e '1i#!%{_bindir}/php' scripts/*.php
-chmod a+rx scripts/*
+# make sure scripts have php shebang
+%{__sed} -i -e '1{
+    /bin.php/!i#!%{_bindir}/php
+}' scripts/*.php  cli/*.php
 
-%{__sed} -i -e '1i#!%{_bindir}/php' cli/*.php
-chmod a+rx cli/*
+chmod a+rx scripts/*.php cli/*.php
 
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
This page took 0.128958 seconds and 4 git commands to generate.