We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9adb5c9 commit 022ce3fCopy full SHA for 022ce3f
src/patch/apply.ts
@@ -56,10 +56,11 @@ export const executeEffects = (
56
case "mode change":
57
const currentMode = fs.statSync(eff.path).mode
58
if (
59
- (isExecutable(eff.newMode) && isExecutable(currentMode)) ||
60
- (!isExecutable(eff.newMode) && !isExecutable(currentMode))
+ ((isExecutable(eff.newMode) && isExecutable(currentMode)) ||
+ (!isExecutable(eff.newMode) && !isExecutable(currentMode))) &&
61
+ dryRun
62
) {
- throw new Error("Mode change is not required")
63
+ console.warn(`Mode change is not required for file ${eff.path}`)
64
}
65
fs.chmodSync(eff.path, eff.newMode)
66
break
0 commit comments