use bash strict mode

This commit is contained in:
Kaiwan N Billimoria
2022-12-19 16:39:03 +05:30
parent 8491e54202
commit 0c1f8213fa

View File

@@ -1,5 +1,6 @@
#!/bin/bash
# ref: http://poormansprofiler.org/
set -euo pipefail
name=$(basename $0)
[ $# -ne 1 ] && {
echo "Usage: ${name} PID(show-user-stack(s)-of-this-process)"