Allow two names for scriptlet containing "userdel"

It used to be named "revised_chroot", it is now named "cleanup"
Allow both names by testing whether revised something is present.
This commit is contained in:
Pierre Labastie 2023-09-05 13:14:26 +02:00
parent 45f82b1326
commit 06b731490f
1 changed files with 4 additions and 2 deletions

View File

@ -22,9 +22,11 @@ wrt_compare_targets() { #
local dir
printf -v dir chapter%02d "$1"
sed -i '/userdel/d' $dir/*revised*
REVISED=cleanup
if ls $dir/*revised* 2>/dev/null; then REVISED=revised; fi
sed -i '/userdel/d' $dir/*$REVISED*
for (( N = 2; N < ITERATIONS; N++ )); do
sed -i '/userdel/d' $dir-build_$N/*revised*
sed -i '/userdel/d' $dir-build_$N/*$REVISED*
done
}