Check if standalone exists

This commit is contained in:
robin 2021-05-14 14:12:04 +02:00
parent fd0b181036
commit d9d159fef5
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,11 @@
#!/bin/bash
declare -a StringArray=("zz_Bags" "zz_Coords" "zz_Friends" "zz_Infoclock" "zz_Mailbox" "zz_Money" "zz_Repair" "zz_Skeleton")
for val in "${StringArray[@]}"; do
echo $val
cp -vra ../$val .
if [ -e ../$val ]
then
echo $val
cp -vra ../$val .
fi
done
cp -vra Libs zz_Skeleton