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() { ...@@ -17,12 +17,14 @@ cleanup() {
local RESULT=$1 local RESULT=$1
output_echo "Cleanup ${RESULT}" output_echo "Cleanup ${RESULT}"
# Cleanup the workspace and results directory # Cleanup the workspace and results directory
for CLEANUP in ${BUILDDIR} ${RESULTSDIR} ; do if [ ! -z "$BUILDDIR" ]; then
if [ ! -z "$CLEANUP" ]; then output_echo "Removing ${BUILDDIR}"
output_echo "Removing ${CLEANUP}" sudo rm -rf --one-file-system ${BUILDDIR}
sudo rm -rf --one-file-system ${CLEANUP} fi
if [ ! -z "$RESULTSDIR" ]; then
output_echo "Removing ${RESULTSDIR}"
rm -rf --one-file-system ${RESULTSDIR}
fi 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