uxndebug

uxn debugging suite
git clone git://bvnf.space/uxndebug.git
Log | Files | Refs | README

commit f0e320e64aa29b87ca23c86e0e2f1fc7acc0cb64
parent e4745e4f94d2a1f0fd2c273d87a834d3348cd2c8
Author: phoebos <ben@bvnf.space>
Date:   Mon,  6 Jun 2022 10:40:15 +0100

uxnsolve: print separate error message if file not found

Diffstat:
Muxnsolve | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/uxnsolve b/uxnsolve @@ -1,11 +1,13 @@ #!/bin/sh -e -# desired behaviour -# shellcheck disable=SC2015 -[ "$#" -eq 2 ] && [ -r "$1" ] || { +[ "$#" -eq 2 ] || { printf "usage: %s file.tal.debug address\n" "$0" >&2 exit 1 } +[ -r "$1" ] || { + printf "%s: file not found\n" "$1" >&2 + exit 1 +} case "$1" in *.tal.debug) ;;