49
49
# Extract MIT License header
50
50
mit_start_line=$( grep -n" ^MIT License" " $clone_dir /LICENSE" | cut -d" :" -f 1)
51
51
if [-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"
53
53
exit 1
54
54
fi
55
55
license_header=$( sed -n" ${mit_start_line} ,\$ p" " $clone_dir /LICENSE" | sed' s/^/ * /' )
@@ -87,7 +87,8 @@ add_file() {
87
87
if [-f " $import_file_path " ]; then
88
88
add_file" $import_file_path "
89
89
else
90
- echo " Warning: Import$import_path not found"
90
+ echo " Error: Import$import_path not found"
91
+ exit 1
91
92
fi
92
93
fi
93
94
done < " $filepath "
@@ -96,7 +97,7 @@ add_file() {
96
97
for entry_file in " ${entry_files[@]} " ; do
97
98
entry_file_path=" $clone_dir /$proto_prefix /$entry_file "
98
99
if [! -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"
100
101
exit 1
101
102
fi
102
103
add_file" $entry_file_path "