Modify the script to allow for running docker images on Windows 7.
This commit is contained in:
parent
1b5aaf22e8
commit
33400fbbcd
3 changed files with 60 additions and 9 deletions
|
|
@ -31,9 +31,9 @@ pub fn check(path: &Path, bad: &mut bool) {
|
|||
if let Ok(mut file) = fs::File::open("/proc/version") {
|
||||
let mut contents = String::new();
|
||||
file.read_to_string(&mut contents).unwrap();
|
||||
// Probably on Windows Linux Subsystem, all files will be marked as
|
||||
// executable, so skip checking.
|
||||
if contents.contains("Microsoft") {
|
||||
// Probably on Windows Linux Subsystem or Docker via VirtualBox,
|
||||
// all files will be marked as executable, so skip checking.
|
||||
if contents.contains("Microsoft") || contents.contains("boot2docker") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue