Unverified Commit c9ea0e7e authored by Shawn Webb's avatar Shawn Webb
Browse files

Remove debug messages and keep silent


Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 1e309ab1
...@@ -60,12 +60,10 @@ main() { ...@@ -60,12 +60,10 @@ main() {
cleanup_set_dynamic cleanup_set_dynamic
HBSD_LOCKFILE="${HBSD_LOCKFILE}.cleanup" HBSD_LOCKFILE="${HBSD_LOCKFILE}.cleanup"
( assert_unlocked && \
assert_unlocked && \ lock_build && \
lock_build && \ prune_old_builds && \
prune_old_builds && \ unlock_build
unlock_build
) | build_log 2>&1
return ${?} return ${?}
} }
......
...@@ -67,6 +67,5 @@ cleanup_set_dynamic() { ...@@ -67,6 +67,5 @@ cleanup_set_dynamic() {
HBSD_BUILDNUMBER=$(readlink ${HBSD_PUBDIR}/BUILD-LATEST) HBSD_BUILDNUMBER=$(readlink ${HBSD_PUBDIR}/BUILD-LATEST)
HBSD_BUILDNUMBER=${HBSD_BUILDNUMBER##*-} HBSD_BUILDNUMBER=${HBSD_BUILDNUMBER##*-}
echo "[*] Build number: ${HBSD_BUILDNUMBER}"
return 0 return 0
} }
...@@ -120,7 +120,6 @@ prune_old_builds() { ...@@ -120,7 +120,6 @@ prune_old_builds() {
for d in $(find ${HBSD_PUBDIR} -maxdepth 1 -type d | sed 1d); do for d in $(find ${HBSD_PUBDIR} -maxdepth 1 -type d | sed 1d); do
n=$(basename ${d}) n=$(basename ${d})
if [ ${n} -lt ${floor} ]; then if [ ${n} -lt ${floor} ]; then
echo "[*] Removing ${d}"
rm -rf ${d} rm -rf ${d}
fi fi
done done
......
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