summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms5
-rwxr-xr-xscript/trees2
2 files changed, 4 insertions, 3 deletions
diff --git a/script/roms b/script/roms
index 5cd8b66b..7b6f8685 100755
--- a/script/roms
+++ b/script/roms
@@ -33,8 +33,9 @@ main()
{
while [ $# -gt 0 ]; do
if [ "$1" = "serprog" ]; then
- [ $# -lt 2 ] && badcmd "serprog type not set"
- [ "$2" != "rp2040" ] && [ "$2" != "stm32" ] && badcmd
+ [ $# -lt 2 ] && $err "serprog type not set"
+ [ "$2" != "rp2040" ] && [ "$2" != "stm32" ] && \
+ $err "invalid serprog type"
eval "x_ ./update trees -f \"\${${2}src##*/}\""
ser="$2" && shift 2 && continue
fi
diff --git a/script/trees b/script/trees
index 6a3c1ebd..82c3ce84 100755
--- a/script/trees
+++ b/script/trees
@@ -28,7 +28,7 @@ main()
-s) mode="savedefconfig" ;;
-l) mode="olddefconfig" ;;
-n) mode="nconfig" ;;
- *) badcmd "invalid option '-$option'" ;;
+ *) $err "invalid option '-$option'" ;;
esac
shift; project="${OPTARG#src/}"; shift
done