mirror of https://github.com/rapenne-s/bento
bento: recreate the state file for every rebuild
This commit is contained in:
parent
88f124b5b1
commit
d8c28c8ebd
14
bento
14
bento
|
@ -738,13 +738,17 @@ then
|
|||
deploy_files "$i" "$i"
|
||||
fi
|
||||
|
||||
# the states files is used for the status function
|
||||
# we need to update it after each rebuild so if a
|
||||
# system updates while other configurations are building
|
||||
# the status will be correct
|
||||
if [ -f ../states.txt ]
|
||||
then
|
||||
cp ../states.txt "${CHROOT_DIR}/states.txt"
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
# the states files is used for the status function
|
||||
if [ -f ../states.txt ]
|
||||
then
|
||||
cp ../states.txt "${CHROOT_DIR}/states.txt"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue