From dddf31db8de2f5843eca2d51de06664c3e4a96a7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 26 Jul 2018 21:48:34 +0000 Subject: [PATCH] do copy links with rsync --- setup-node-ubuntu.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-node-ubuntu.bash b/setup-node-ubuntu.bash index 3f3b301..89022b6 100644 --- a/setup-node-ubuntu.bash +++ b/setup-node-ubuntu.bash @@ -72,8 +72,8 @@ if [ -n "${NODEJS_VER}" ]; then rm -rf ${NODEJS_UNTAR}/${NODEJS_NAME}-${NODEJS_VER}-linux-${ARCH} # clean up the temporary unzip folder rm ${NODEJS_UNTAR}/{LICENSE,CHANGELOG.md,README.md} if [ -n "$(command -v rsync 2>/dev/null | grep rsync)" ]; then - echo $sudo_cmd rsync -Kr "${NODEJS_UNTAR}/" "$node_install_path/" - rsync -Kr "${NODEJS_UNTAR}/" "$node_install_path/" || $sudo_cmd rsync -Kr "${NODEJS_UNTAR}/" "$node_install_path/" + echo $sudo_cmd rsync -Krl "${NODEJS_UNTAR}/" "$node_install_path/" + rsync -Krl "${NODEJS_UNTAR}/" "$node_install_path/" || $sudo_cmd rsync -Krl "${NODEJS_UNTAR}/" "$node_install_path/" else echo $sudo_cmd cp -Hr "${NODEJS_UNTAR}/*" "$node_install_path/" cp -Hr "${NODEJS_UNTAR}"/* "$node_install_path/" || $sudo_cmd cp -Hr "${NODEJS_UNTAR}"/* "$node_install_path/"