aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/dockerNode.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/dockerNode.ts')
-rw-r--r--cypress/dockerNode.ts13
1 files changed, 5 insertions, 8 deletions
diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts
index 530a013aa2c..180ff7894c6 100644
--- a/cypress/dockerNode.ts
+++ b/cypress/dockerNode.ts
@@ -150,22 +150,19 @@ export const applyChangesToNextcloud = async function() {
'./remote.php',
'./status.php',
'./version.php',
- ]
-
- let needToApplyChanges = false
-
- folderPaths.forEach((folderPath) => {
- const fullPath = path.join(htmlPath, folderPath)
+ ].filter((folderPath) => {
+ const fullPath = path.resolve(__dirname, '..', folderPath)
if (existsSync(fullPath)) {
- needToApplyChanges = true
console.log(`├─ Copying ${folderPath}`)
+ return true
}
+ return false
})
// Don't try to apply changes, when there are none. Otherwise we
// still execute the 'chown' command, which is not needed.
- if (!needToApplyChanges) {
+ if (folderPaths.length === 0) {
console.log('└─ No local changes found to apply')
return
}