Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
hbsd_build
Commits
c9ea0e7e
Unverified
Commit
c9ea0e7e
authored
Mar 28, 2020
by
Shawn Webb
Browse files
Remove debug messages and keep silent
Signed-off-by:
Shawn Webb
<
shawn.webb@hardenedbsd.org
>
parent
1e309ab1
Changes
3
Hide whitespace changes
Inline
Side-by-side
bin/cleanup.sh
View file @
c9ea0e7e
...
...
@@ -60,12 +60,10 @@ main() {
cleanup_set_dynamic
HBSD_LOCKFILE
=
"
${
HBSD_LOCKFILE
}
.cleanup"
(
assert_unlocked
&&
\
lock_build
&&
\
prune_old_builds
&&
\
unlock_build
)
| build_log 2>&1
assert_unlocked
&&
\
lock_build
&&
\
prune_old_builds
&&
\
unlock_build
return
${
?
}
}
...
...
lib/config.sh
View file @
c9ea0e7e
...
...
@@ -67,6 +67,5 @@ cleanup_set_dynamic() {
HBSD_BUILDNUMBER
=
$(
readlink
${
HBSD_PUBDIR
}
/BUILD-LATEST
)
HBSD_BUILDNUMBER
=
${
HBSD_BUILDNUMBER
##*-
}
echo
"[*] Build number:
${
HBSD_BUILDNUMBER
}
"
return
0
}
lib/util.sh
View file @
c9ea0e7e
...
...
@@ -120,7 +120,6 @@ prune_old_builds() {
for
d
in
$(
find
${
HBSD_PUBDIR
}
-maxdepth
1
-type
d |
sed
1d
)
;
do
n
=
$(
basename
${
d
}
)
if
[
${
n
}
-lt
${
floor
}
]
;
then
echo
"[*] Removing
${
d
}
"
rm
-rf
${
d
}
fi
done
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment