Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
f5cf1d03
Commit
f5cf1d03
authored
Aug 29, 2022
by
Holger Levsen
Browse files
reproducible Debian: fix cleanup sudo usage
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
bdd2390d
Changes
1
Show whitespace changes
Inline
Side-by-side
bin/reproducible_debstrap.sh
View file @
f5cf1d03
...
@@ -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
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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