[fix] Trap argument off by one

This commit is contained in:
William Wernert
2020-12-04 09:33:28 -05:00
parent 3273a63662
commit fca50660a2

View File

@@ -432,7 +432,7 @@ echo "1" > /root/accept_changes
trap 'catch $LINENO' SIGUSR1
catch() {
info "Fatal error occurred at $2 in so-setup, failing setup."
info "Fatal error occurred at $1 in so-setup, failing setup."
whiptail_setup_failed
exit
}