if cp -R "$source" "$destination"
then echo "Copy successful :)"
else echo "Copy failed :("
fi
The -R
option to cp
specifies that it should copy the directory recursively. $source
should contain the original directory, and $destination
should contain the location where you want it copied.