diff --git a/scripts/cp_broker.sh b/scripts/cp_broker.sh index 255f8f0..5377620 100755 --- a/scripts/cp_broker.sh +++ b/scripts/cp_broker.sh @@ -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 \ No newline at end of file