[fix] Only set is_reinstall if it's needed

This commit is contained in:
William Wernert
2020-11-18 14:47:53 -05:00
parent 8b6b7cbd11
commit 80d0080f70

View File

@@ -54,7 +54,6 @@ while [[ $# -gt 0 ]]; do
esac
done
is_reinstall=false
if [[ -f /root/accept_changes ]]; then
is_reinstall=true
@@ -429,7 +428,7 @@ whiptail_make_changes
# From here on changes will be made.
echo "1" > /root/accept_changes
if [[ $is_reinstall == true ]]; then
if [[ $is_reinstall ]]; then
reinstall_init
fi