Commit f5cf1d03 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: fix cleanup sudo usage



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent bdd2390d
......@@ -17,12 +17,14 @@ cleanup() {
local RESULT=$1
output_echo "Cleanup ${RESULT}"
# Cleanup the workspace and results directory
for CLEANUP in ${BUILDDIR} ${RESULTSDIR} ; do
if [ ! -z "$CLEANUP" ]; then
output_echo "Removing ${CLEANUP}"
sudo rm -rf --one-file-system ${CLEANUP}
if [ ! -z "$BUILDDIR" ]; then
output_echo "Removing ${BUILDDIR}"
sudo rm -rf --one-file-system ${BUILDDIR}
fi
if [ ! -z "$RESULTSDIR" ]; then
output_echo "Removing ${RESULTSDIR}"
rm -rf --one-file-system ${RESULTSDIR}
fi
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