Commit 3a1e41cf authored by Oliver Pinter's avatar Oliver Pinter
Browse files

HBSD: handle lines starting with # as comments


Signed-off-by: default avatarOliver Pinter <oliver.pinter@hardenedbsd.org>
parent 03692fc9
......@@ -38,14 +38,21 @@ git stash
# these contains the svn revision ids
(git push origin refs/notes/commits) |& ${TEE_CMD} ${LOGS}/freebsd-fetch-${DATE}.log
foreach branch ( ${BRANCHES} )
foreach line ( ${BRANCHES} )
set err=0
set _mail_subject_prefix=""
set remote_branches=`echo ${branch} | cut -d ':' -f 2 | tr '+' ' '`
set branch=`echo ${branch} | cut -d ':' -f 1`
set remote_branches=`echo ${line} | cut -d ':' -f 2 | tr '+' ' '`
set branch=`echo ${line} | cut -d ':' -f 1 | tr -d '#'`
set _branch=`echo ${branch} | tr '/' ':'`
# Skip lines beginning with '#'
echo ${line} | grep -Eq '^#.*'
if ( $? == 0 ) then
echo "=== SKIP: ${line} ===" |& ${TEE_CMD} ${LOGS}/${_branch}-${DATE}.log
goto handle_err
endif
echo "==== BEGIN: ${branch} ====" |& ${TEE_CMD} ${LOGS}/${_branch}-${DATE}.log
echo "current branch: ${branch}" |& ${TEE_CMD} ${LOGS}/${_branch}-${DATE}.log
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment