Skip to content

Commit

Permalink
Fix for issue macadmins#54
Browse files Browse the repository at this point in the history
Fixes the checksum all  command so that the outset/logs folder is ignored
  • Loading branch information
HowardGMac authored Nov 19, 2024
1 parent 8f80fe9 commit e22ceb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Outset/Utils/FileUtils/Checksum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func checksumAllFiles() {
for case let fileURL as URL in enumerator {
do {
let fileAttributes = try fileURL.resourceValues(forKeys: [.isRegularFileKey])
if fileAttributes.isRegularFile! && fileURL.pathExtension != "plist" && fileURL.lastPathComponent != "outset" {
if fileAttributes.isRegularFile! && fileURL.pathExtension != "plist" && fileURL.lastPathComponent != "outset" && !fileURL.relativePath.contains(logFilePath) {
if let shasum = sha256(for: fileURL) {
printStdOut("\(fileURL.relativePath) : \(shasum)")
shasumPlist.sha256sum[fileURL.relativePath] = shasum
Expand Down

0 comments on commit e22ceb4

Please sign in to comment.