From 28c1ad84846e3a4039bb23db1b01dc552cfe220d Mon Sep 17 00:00:00 2001 From: richdex14 Date: Mon, 4 Sep 2017 11:35:52 -0600 Subject: [PATCH] Debugging copying issues --- setup-node-ubuntu.bash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup-node-ubuntu.bash b/setup-node-ubuntu.bash index f97e3ff..87428ca 100644 --- a/setup-node-ubuntu.bash +++ b/setup-node-ubuntu.bash @@ -66,9 +66,8 @@ if [ -n "${NODEJS_VER}" ]; then rm ${NODEJS_UNTAR}/{LICENSE,CHANGELOG.md,README.md} echo "$node_install_path" echo "${NODEJS_UNTAR}" - sudo cp -rf "${NODEJS_UNTAR}/" "$node_install_path/" - sync - + sudo rsync -a "${NODEJS_UNTAR}/" "$node_install_path/" + echo "Done copying" sudo chown -R $(whoami) "$node_install_path/lib/node_modules/" sudo chown $(whoami) ""$node_install_path"/bin/"