@@ -130,13 +130,13 @@ fn run_scripts(name: &str, path: &str, disabled_scripts: Option<&[String]>) -> S
130130 } ;
131131
132132 for entry in entries. flatten ( ) {
133- // Process script name
133+ // Process script/binary name
134134 let file_name = match entry. file_name ( ) . and_then ( |n| n. to_str ( ) ) {
135135 Some ( name) => name,
136136 None => continue ,
137137 } ;
138138
139- // Check if script should be skipped
139+ // Check if script/binary should be skipped
140140 if let Some ( disabled) = disabled_scripts {
141141 if disabled. contains ( & file_name. to_string ( ) ) {
142142 log:: info!( "Skipping disabled script: {}" , file_name) ;
@@ -147,7 +147,7 @@ fn run_scripts(name: &str, path: &str, disabled_scripts: Option<&[String]>) -> S
147147
148148 log:: info!( "running {} check {}" , name, entry. to_string_lossy( ) ) ;
149149
150- // Sort between script and binary since they require different commands to execute properly.
150+ // Sort between scripts and binaries since they require different commands to execute properly.
151151 let output = if entry. extension ( ) . and_then ( |ext| ext. to_str ( ) ) == Some ( "sh" ) {
152152 Command :: new ( "bash" ) . arg ( "-C" ) . arg ( & entry) . output ( )
153153 } else {
@@ -233,8 +233,8 @@ mod test {
233233 setup_folder_structure ( false )
234234 . context ( "Test setup failed" )
235235 . unwrap ( ) ;
236- // Causes errors if these are no removed since they cause an excess amount
237- // of failure .
236+ // Causes errors if these are not removed since they cause an excess amount
237+ // of failures .
238238 let required_path = format ! ( "{}/check/required.d" , GREENBOOT_INSTALL_PATHS [ 1 ] ) ;
239239 let _ = std:: fs:: remove_file ( format ! ( "{}/01_failing_binary" , required_path) ) ;
240240 let _ = std:: fs:: remove_file ( format ! ( "{}/02_failing_binary" , required_path) ) ;
0 commit comments