From 931b8f2db81517d3bfd71b8b10d8999bedfcefc2 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Wed, 19 Apr 2023 02:15:57 +0200 Subject: [PATCH] Make help handler a one-liner --- convert-psp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/convert-psp b/convert-psp index 5fbaa16..dfc5522 100644 --- a/convert-psp +++ b/convert-psp @@ -9,9 +9,7 @@ help(){ exit 1 } -[ -z "$1" ] && help -[ "$1" == "-h" ] && help -[ "$1" == "--help" ] && help +[[ -z "$1" || "$1" == "-h" || "$1" == "--help" ]] && help saveifs=$IFS IFS=$'\n'