-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsync-secrets.sh
More file actions
executable file
·33 lines (24 loc) · 979 Bytes
/
sync-secrets.sh
File metadata and controls
executable file
·33 lines (24 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
scriptDir="$(cd "$(dirname "$0")" && pwd)"
exodusSecretsPath="$scriptDir/Resources/Prototypes/ExodusSecrets"
secretsPrototypesPath="$scriptDir/Secrets/Resources/Prototypes"
mapsPath="$scriptDir/Resources/Maps/ExodusSecrets"
secretsMapsPath="$scriptDir/Secrets/Resources/Maps"
localePath="$scriptDir/Resources/Locale/ru-RU/exodus-secrets"
secretsLocalePath="$scriptDir/Secrets/Resources/Locale/ru-RU"
texturesPath="$scriptDir/Resources/Textures/ExodusSecrets"
secretsTexturesPath="$scriptDir/Secrets/Resources/Textures"
process_folder() {
local targetPath="$1"
local sourcePath="$2"
if [ -d "$targetPath" ]; then
rm -rf "$targetPath"
fi
if [ -d "$sourcePath" ]; then
cp -r "$sourcePath" "$targetPath"
fi
}
process_folder "$exodusSecretsPath" "$secretsPrototypesPath"
# process_folder "$mapsPath" "$secretsMapsPath"
process_folder "$localePath" "$secretsLocalePath"
process_folder "$texturesPath" "$secretsTexturesPath"