Fix for #39
Scenario: When the main.swift file is in the same folder as the target folder and we perform consecutive runs.
Effect: Looks like the main.swift was getting internally overwritten when the script was executed for the first time. Thereby corrupting the file for consecutive runs.
Fix: A check to prevent modifications to the source file which is executing the script.
Fix for #39 Scenario: When the
main.swift
file is in the same folder as the target folder and we perform consecutive runs.Effect: Looks like the
main.swift
was getting internally overwritten when the script was executed for the first time. Thereby corrupting the file for consecutive runs.Fix: A check to prevent modifications to the source file which is executing the script.