mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-19 05:28:29 +00:00
Actually cancel warning when Ctrl-C etc are pressed
This commit is contained in:
parent
957a5689dc
commit
0be8a67ba0
@ -1071,6 +1071,7 @@ doWarn(){
|
|||||||
msg="Shutdown cancelled by operator ($1)"
|
msg="Shutdown cancelled by operator ($1)"
|
||||||
fi
|
fi
|
||||||
doBroadcastWithEcho "${msg}"
|
doBroadcastWithEcho "${msg}"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
trap "update_cancelled 'Ctrl+C'" SIGINT
|
trap "update_cancelled 'Ctrl+C'" SIGINT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user