if [[ -z ${PKG_NAME} ]]; then echo "Conda build has changed out from under you. PKG_NAME is undefined..." exit 1 fi dest="${PREFIX}/share/${PKG_NAME}" usedir="$(pwd)" if [[ -d ${usedir}/work ]]; then usedir=${usedir}/work fi mkdir -p "${dest}" rsync -a "${usedir}"/notebooks/ "${dest}"/