4949# Extract MIT License header
5050mit_start_line=$( grep -n" ^MIT License" " $clone_dir /LICENSE" | cut -d" :" -f 1)
5151if [-z " $mit_start_line " ]; then
52- echo " Failed to find MIT License header in Mutagen LICENSE file"
52+ echo " Error: Failed to find MIT License header in Mutagen LICENSE file"
5353exit 1
5454fi
5555license_header=$( sed -n" ${mit_start_line} ,\$ p" " $clone_dir /LICENSE" | sed' s/^/ * /' )
@@ -87,7 +87,8 @@ add_file() {
8787if [-f " $import_file_path " ]; then
8888 add_file" $import_file_path "
8989else
90- echo " Warning: Import$import_path not found"
90+ echo " Error: Import$import_path not found"
91+ exit 1
9192fi
9293fi
9394done < " $filepath "
@@ -96,7 +97,7 @@ add_file() {
9697for entry_file in " ${entry_files[@]} " ; do
9798 entry_file_path=" $clone_dir /$proto_prefix /$entry_file "
9899if [! -f " $entry_file_path " ]; then
99- echo " Failed to find$entry_file_path in mutagen repo"
100+ echo " Error: Failed to find$entry_file_path in mutagen repo"
100101exit 1
101102fi
102103 add_file" $entry_file_path "