Deinstall Warning

I want:
If I do make deinstall in the port, I want get a warning and it should sleep some time (e.g. 20 seconds). So I had time to interrupt.
 
How? Share how you solved it to prevent this from happening.
;-))


What the Handbook shows was clear, I had in the moment a problem with the deinstall.
Code:
.if !target(deinstall)
SLEEP_CMD=  /bin/sleep
deinstall:
  @${ECHO_MSG} "If you delete this port, it will damage something"
  @${SLEEP_CMD} 20
  pkg delete -f port_name
.endif
 
Back
Top