Add signal traps to handle interruptions in install and p scripts
This commit is contained in:
@@ -41,6 +41,7 @@ pcheck() {
|
||||
}
|
||||
|
||||
p() (
|
||||
trap "echo -e '\n${RED}p interrupted.${NC}'; exit 1" SIGINT SIGTERM
|
||||
packageManagers=($(pcheck))
|
||||
|
||||
updateP() {
|
||||
|
||||
Reference in New Issue
Block a user