Skip to content

Commit b1fac14

Browse files
committed
* add prompt for missing axp2img
1 parent d003619 commit b1fac14

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/os/maixcam2/gen_os.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ function usage() {
2222
echo ""
2323
}
2424

25+
function check_axp2img_command() {
26+
if ! command -v axp2img >/dev/null 2>&1; then
27+
echo "axp2img command not found, please run \"pip install axp-tools\" first"
28+
exit 1
29+
fi
30+
}
31+
2532
param_count=$#
2633
case "$param_count" in
2734
3|4|5|6|7)
@@ -57,6 +64,8 @@ if [ -n "$5" ]; then
5764
fi
5865
fi
5966

67+
check_axp2img_command
68+
6069
delete_first_files=""
6170
if [ -n "$6" ]; then
6271
delete_first_files=$6

0 commit comments

Comments
 (0)