no clobber

after additional testing. in case existing files but no config hjson there could be data overwritten due to copy being a big bully
will not overwrite any files with -n and should be safe again .
This commit is contained in:
David Abutbul 2022-01-29 19:17:16 +02:00 committed by GitHub
parent 8f56b7e48c
commit 50cdf693da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if [[ ! -f $bbspath/config/$configname ]]; then
for dir in "${prepopvols[@]}"
do
if [ -n "$(find "$bbspath/$dir" -maxdepth 0 -type d -empty 2>/dev/null)" ]; then
cp -rp $bbsstgp/$dir/* $bbspath/$dir/
cp -rpn $bbsstgp/$dir/* $bbspath/$dir/
else
echo "WARN skipped $bbspath/$dir - vol Not empty/not a new setup - possible bad state"
fi