@@ -58,23 +58,23 @@ process_file() {
5858 fi
5959
6060 if cat -- " $file_name " | unicode-show > /dev/null ; then
61- # # unicode-show exit code non-zero .
61+ # # unicode-show exit code 0 .
6262 printf " %s\n" " $0 : ERROR: Failed to find unicode using 'unicode-show' (stdin check) in file '$file_name '." >&2
6363 exit 1
6464 fi
65- # # unicode-show exit code 0 .
65+ # # unicode-show exit code non-zero .
6666
6767 # # 'stcatn' should sanitize. Therefore 'unicode-show' should not find any unicode and exit 0.
6868 # # Check if there is a non-zero exit code in this pipe, because if so, that's a bug.
6969 if ! stcatn " $file_name " | unicode-show > /dev/null ; then
70- # # unicode-show exit code 0 .
70+ # # unicode-show exit code non-zero .
7171 printf " %s\n" " $0 : ERROR: Failed to sanitize string using 'stcatn' in file '$file_name '." >&2
7272 exit 1
7373 fi
74- # # unicode-show non-zero exit code.
74+ # # unicode-show exit code 0 .
7575
7676 if ! cat -- " $file_name " | sanitize-string nolimit > /dev/null ; then
77- # # unicode-show exit code 0 .
77+ # # sanitize-string exit code non-zero .
7878 printf " %s\n" " $0 : ERROR: Failed to sanitize string using 'sanitize-string' (stdin check) in file '$file_name '." >&2
7979 exit 1
8080 fi
@@ -83,7 +83,7 @@ process_file() {
8383 file_content=" $( cat -- " $file_name " ) "
8484
8585 if ! sanitize-string nolimit " $file_content " > /dev/null ; then
86- # # unicode-show exit code 0 .
86+ # # sanitize-string exit code non-zero .
8787 printf " %s\n" " $0 : ERROR: Failed to sanitize string using 'sanitize-string' (command check) in file '$file_name '." >&2
8888 exit 1
8989 fi
@@ -97,6 +97,7 @@ $0: ERROR: Folder '$HOME/trojan-source' missing. To get it:
9797
9898cd ~
9999git clone git@github.com:nickboucher/trojan-source.git" >&2
100+ exit 1
100101fi
101102
102103# # Creates files:
0 commit comments