Post #3070724
2026-05-15 11:31 UTC
Type safety in good old Shell
bool() {
case "$1" in
true|TRUE|True|1|yes|YES|Yes|y|Y) return 0 ;;
*) return 1 ;;
esac
}
if bool "$PY_RESULT"; then...
#tgif
Replies (0)
No replies.