[PATCH 3/4] Deleted the old combinefixes.sh
Shawn Wells
shawn at redhat.com
Fri Mar 29 16:48:15 UTC 2013
On 3/29/13 9:54 AM, Brian Millett wrote:
> Signed-off-by: Brian Millett <bmillett at gmail.com>
> ---
> RHEL6/transforms/combinefixes.sh | 17 -----------------
> 1 file changed, 17 deletions(-)
> delete mode 100755 RHEL6/transforms/combinefixes.sh
>
> diff --git a/RHEL6/transforms/combinefixes.sh b/RHEL6/transforms/combinefixes.sh
> deleted file mode 100755
> index e351b1e..0000000
> --- a/RHEL6/transforms/combinefixes.sh
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -#!/bin/bash
> -
> -## First argument: directory with .sh scripts
> -## Second argument: where to put combined xml file
> -
> -shopt -s nullglob
> -echo "<fix-group id=\"bash\" system=\"urn:xccdf:fix:script:sh\" xmlns=\"http://checklists.nist.gov/xccdf/1.1\">" > $2
> -
> -for fixScript in $1/*.sh; do
> - fixName=`echo $fixScript | awk -F/ ' { print $NF } ' | awk -F. ' { print $1 }'`
> - fixContent=`cat $fixScript`
> - echo "<fix rule=\"$fixName\">" >>$2
> - cat $fixScript | while read fixLine; do echo $fixLine >>$2; done
> - echo "</fix>" >>$2
> -done
> -
> -echo "</fix-group>" >>$2
Ack
More information about the scap-security-guide
mailing list