@ozmage how you fixed this:
Run chmod a+x script2.sh
12open: ../r.img failed with 2: No such file or directory
13open: system/bin/recovery failed with 2: No such file or directory
14open: system/bin/recovery failed with 2: No such file or directory
15open: system/bin/recovery failed with 2: No such file or directory
16open: system/bin/recovery failed with 2: No such file or directory
17open: system/bin/recovery failed with 2: No such file or directory
18open: system/bin/recovery failed with 2: No such file or directory
19open: system/bin/recovery failed with 2: No such file or directory
20open: system/bin/recovery failed with 2: No such file or directory
21open: system/bin/recovery failed with 2: No such file or directory
22open: system/bin/recovery failed with 2: No such file or directory
23open: system/bin/recovery failed with 2: No such file or directory
24open: system/bin/recovery failed with 2: No such file or directory
25open: ../r.img failed with 2: No such file or directory
26cp: cannot stat 'new-boot.img': No such file or directory
27wc: recovery.img: No such file or directory
28usage: avbtool add_hash_footer [-h] [--image IMAGE]
29 [--partition_size PARTITION_SIZE]
30 [--dynamic_partition_size]
31 [--partition_name PARTITION_NAME]
32 [--hash_algorithm HASH_ALGORITHM] [--salt SALT]
33 [--calc_max_image_size]
34 [--output_vbmeta_image OUTPUT_VBMETA_IMAGE]
35 [--do_not_append_vbmeta_image]
36 [--algorithm ALGORITHM] [--key KEY]
37 [--signing_helper APP]
38 [--signing_helper_with_files APP]
39 [--public_key_metadata KEY_METADATA]
40 [--rollback_index ROLLBACK_INDEX]
41 [--rollback_index_location ROLLBACK_INDEX_LOCATION]
42 [--append_to_release_string STR]
43 [--prop KEY:VALUE] [--prop_from_file KEY

ATH]
44 [--kernel_cmdline CMDLINE]
45 [--setup_rootfs_from_kernel IMAGE]
46 [--include_descriptors_from_image IMAGE]
47 [--print_required_libavb_version]
48 [--chain_partition PART_NAME:ROLLBACK_SLOT:KEY_PATH]
49 [--flags FLAGS] [--set_hashtree_disabled_flag]
50 [--use_persistent_digest] [--do_not_use_ab]
51avbtool add_hash_footer: error: argument --partition_size: expected one argument
52Error: Process completed with exit code 2.
Has someone been able to build this stupid recovery? How?