Removed use of exit -1 from shell scripts, replaced with 1

Signed-off-by: Haru <haru@dotalux.com>