diff options
author | Holger Paradies <retabell@gmx.de> | 2021-03-26 13:04:14 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2021-03-26 13:04:14 +0100 |
commit | 677d506dec30d175fcfecdd84c3dc8147f8848d1 (patch) | |
tree | b05a19bb0bdb44718d17abf9c10cd2c1ce3a447a | |
parent | f23b1065097a4827dd2168c1fec49b95d2d8445e (diff) | |
download | kanotix-677d506dec30d175fcfecdd84c3dc8147f8848d1.zip kanotix-677d506dec30d175fcfecdd84c3dc8147f8848d1.tar.gz |
Nightly build add function
Function to check for possible Errors
during build and remove iso then.
-rwxr-xr-x | nightly_build.bash | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nightly_build.bash b/nightly_build.bash index b509781..f0fc026 100755 --- a/nightly_build.bash +++ b/nightly_build.bash @@ -1,5 +1,45 @@ #!/bin/bash cd "$(dirname "$0")" +function check_iso { + +# check for possible errors in iso file + +echo "K: Kanotix start iso check..." >>binary.log + IERR=0 +if grep -F -q "E: " binary.log; then + echo "K: ERROR found...1" >>binary.log + IERR=1 +fi +if grep -F -q "Err:" binary.log; then + echo "K: ERROR found...2" >>binary.log + IERR=2 +fi +if grep ^parted binary.packages|grep kanotix >/dev/null; then + echo +else + echo "K: non kanotix parted version found" >>binary.log + echo "K: ERROR found...3" >>binary.log + IERR=3 +fi +if grep -q ^winetricks binary.packages; then + if grep ^winetricks binary.packages|grep kanotix >/dev/null; then + echo + else + echo "K: non kanotix winetricks version found" >>binary.log + echo "K: ERROR found...4" >>binary.log + IERR=4 + fi +fi +if [ $IERR -eq 0 ]; then +echo "K: Kanotix iso check passed..." >>binary.log +else +echo "K: Kanotix iso check errors detected... removing iso" >>binary.log +rm -f kanotix*.iso +fi + +return $IERR +} + rm -rf cache tmpfs/cache # delete iso files older 35 days |