diff options
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/build-lynis.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extras/build-lynis.sh b/extras/build-lynis.sh index a40418e8..6b5beac6 100755 --- a/extras/build-lynis.sh +++ b/extras/build-lynis.sh @@ -281,6 +281,16 @@ #git checkout tags/${LYNIS_VERSION} fi git clone https://github.com/CISOfy/Lynis.git ${MYBUILDDIR}/git/Lynis + + if [ -d ${MYBUILDDIR}/git/Lynis/debian/ ]; then + echo "Copying build files into new tree" + cp -R ../debian/* ${MYBUILDDIR}/git/Lynis/debian/ + cd ${MYBUILDDIR}/git/Lynis/debian/ + git add . + git commit -m "Building process for Lynis release version ${LYNIS_VERSION}" + else + echo "[X] Could not copy debian directory and commit changes" + fi #git tag -l ${MYBUILDDIR}/git/Lynis cd .. |