summaryrefslogblamecommitdiffstats
path: root/satellit_installer/includes/00-perror.inc
blob: 8fa82a8d7e98e2b98adc00e860b2d6d205c628f3 (plain) (tree)
1
2
3
4
5
6
7
8
9


                    
          




                                             



                               

declare -rg MYPID=$$

perror() {
	echo "[ERROR] *" "$@"
	[ "$$" != "$MYPID" ] && kill "$MYPID"
	exit 1
}

pwarning() {
        echo "[WARNING] *" "$@"
}