genex/sym2xps: also check that the unit parameter is present

This commit is contained in:
Werner Almesberger
2012-04-11 23:52:43 -03:00
parent e52c3cf107
commit 3bbd0e75f4
+1 -1
View File
@@ -25,7 +25,7 @@ unit=$3
tmp=$4
out=$5
[ "$lib" ] && [ "$sym" ] && [ "$tmp" ] && [ "$out" ] || usage
[ "$lib" ] && [ "$sym" ] && [ "$unit" ] && [ "$tmp" ] && [ "$out" ] || usage
[ -r "$lib" ] || {
echo "$lib: not found" 1>&2