How to copy directories into a directory using install in bash? You want to use cp -r instead: cp -r foo dest install -D "${origin}"/* -t "${target}"