fix source file detection

This commit is contained in:
DefectingCat
2023-12-05 21:38:40 +08:00
parent 9b9e07c1d1
commit 17af42f710

View File

@ -6,7 +6,7 @@ function backup_folder() {
rm -rf "$3"
fi
if [ -d "$1" ]; then
if [ -r "$1" ]; then
echo "straing copy $1 to $2"
cp -aR "$1" "$2"
else