Beta-2.1 - The clearer, the faster #22
@ -14,7 +14,7 @@ copy_default_config() {
|
|||||||
files_copied=false
|
files_copied=false
|
||||||
|
|
||||||
# Recursively check all files and folders in /app/default
|
# Recursively check all files and folders in /app/default
|
||||||
find /app/default -mindepth 1 | while read src; do
|
while IFS= read -r src; do
|
||||||
relpath="${src#/app/default/}"
|
relpath="${src#/app/default/}"
|
||||||
target="/app/config/$relpath"
|
target="/app/config/$relpath"
|
||||||
if [ ! -e "$target" ]; then
|
if [ ! -e "$target" ]; then
|
||||||
@ -26,7 +26,7 @@ copy_default_config() {
|
|||||||
fi
|
fi
|
||||||
files_copied=true
|
files_copied=true
|
||||||
fi
|
fi
|
||||||
done
|
done < <(find /app/default -mindepth 1)
|
||||||
|
|
||||||
if [ "$files_copied" = true ]; then
|
if [ "$files_copied" = true ]; then
|
||||||
echo "[✓] Default configuration files/folders copied successfully."
|
echo "[✓] Default configuration files/folders copied successfully."
|
||||||
|
Reference in New Issue
Block a user