Remove unneeded x-prefix in comparisons

Found via shellcheck.  Reference:

https://www.shellcheck.net/wiki/SC2268
This commit is contained in:
Andrew Gaul
2025-08-20 13:02:27 -07:00
parent 7112471a80
commit 666fea3d26
3 changed files with 12 additions and 12 deletions

View File

@ -48,11 +48,11 @@ func_usage()
PRGNAME=$(basename "$0")
if [ "X$1" = "X-h" ] || [ "X$1" = "X-H" ]; then
if [ "$1" = "-h" ] || [ "$1" = "-H" ]; then
func_usage "${PRGNAME}"
exit 0
fi
if [ "X$1" = "X" ] || [ "X$2" = "X" ] || [ "X$3" = "X" ]; then
if [ "$1" = "" ] || [ "$2" = "" ] || [ "$3" = "" ]; then
func_usage "${PRGNAME}"
exit 1
fi
@ -61,7 +61,7 @@ BUCKET="$1"
CDIR="$2"
LIMIT="$3"
SILENT=0
if [ "X$4" = "X-silent" ]; then
if [ "$4" = "-silent" ]; then
SILENT=1
fi
FILES_CDIR="${CDIR}/${BUCKET}"