From f0e3eb14f3bb45c73633c761b36e31e2f84f525d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 23 Mar 2024 17:18:38 +0100 Subject: [PATCH] Move file lists to resource directory --- .../FileLists/Home.exclude.txt | 0 .../FileLists/Home.include.txt | 0 .../FileLists/Public.exclude.txt | 0 .../FileLists/Public.include.txt | 0 scripts/Windows/Scripts/PersonalFiles.ps1 | 14 ++++++++++++-- 5 files changed, 12 insertions(+), 2 deletions(-) rename scripts/Windows/{Scripts => Resources}/FileLists/Home.exclude.txt (100%) rename scripts/Windows/{Scripts => Resources}/FileLists/Home.include.txt (100%) rename scripts/Windows/{Scripts => Resources}/FileLists/Public.exclude.txt (100%) rename scripts/Windows/{Scripts => Resources}/FileLists/Public.include.txt (100%) diff --git a/scripts/Windows/Scripts/FileLists/Home.exclude.txt b/scripts/Windows/Resources/FileLists/Home.exclude.txt similarity index 100% rename from scripts/Windows/Scripts/FileLists/Home.exclude.txt rename to scripts/Windows/Resources/FileLists/Home.exclude.txt diff --git a/scripts/Windows/Scripts/FileLists/Home.include.txt b/scripts/Windows/Resources/FileLists/Home.include.txt similarity index 100% rename from scripts/Windows/Scripts/FileLists/Home.include.txt rename to scripts/Windows/Resources/FileLists/Home.include.txt diff --git a/scripts/Windows/Scripts/FileLists/Public.exclude.txt b/scripts/Windows/Resources/FileLists/Public.exclude.txt similarity index 100% rename from scripts/Windows/Scripts/FileLists/Public.exclude.txt rename to scripts/Windows/Resources/FileLists/Public.exclude.txt diff --git a/scripts/Windows/Scripts/FileLists/Public.include.txt b/scripts/Windows/Resources/FileLists/Public.include.txt similarity index 100% rename from scripts/Windows/Scripts/FileLists/Public.include.txt rename to scripts/Windows/Resources/FileLists/Public.include.txt diff --git a/scripts/Windows/Scripts/PersonalFiles.ps1 b/scripts/Windows/Scripts/PersonalFiles.ps1 index b866dbcf..41c5ef17 100644 --- a/scripts/Windows/Scripts/PersonalFiles.ps1 +++ b/scripts/Windows/Scripts/PersonalFiles.ps1 @@ -6,8 +6,18 @@ function Get-BackupCandidates() { $candidates.AddRange( [System.Tuple[string, string, string[]][]]@( - [System.Tuple]::Create("Home", "$HOME", @("-i@`"$PSScriptRoot/FileLists/Home.include.txt`"", "-x@`"$PSScriptRoot/FileLists/Home.exclude.txt`"")), - [System.Tuple]::Create("Public", "$env:PUBLIC", @("-i@`"$PSScriptRoot/FileLists/Public.include.txt`"", "-x@`"$PSScriptRoot/FileLists/Public.exclude.txt`"")))); + [System.Tuple]::Create( + "Home", + "$HOME", + @( + "-i@`"$PSScriptRoot/../Resources/FileLists/Home.include.txt`"", + "-x@`"$PSScriptRoot/../Resources/FileLists/Home.exclude.txt`"")), + [System.Tuple]::Create( + "Public", + "$env:PUBLIC", + @( + "-i@`"$PSScriptRoot/../Resources/FileLists/Public.include.txt`"", + "-x@`"$PSScriptRoot/../Resources/FileLists/Public.exclude.txt`"")))); return $candidates; }