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:
parent
8f56b7e48c
commit
50cdf693da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue