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:
parent
45f82b1326
commit
06b731490f
1 changed files with 4 additions and 2 deletions
|
@ -22,9 +22,11 @@ wrt_compare_targets() { #
|
||||||
local dir
|
local dir
|
||||||
printf -v dir chapter%02d "$1"
|
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
|
for (( N = 2; N < ITERATIONS; N++ )); do
|
||||||
sed -i '/userdel/d' $dir-build_$N/*revised*
|
sed -i '/userdel/d' $dir-build_$N/*$REVISED*
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue