do copy links with rsync

This commit is contained in:
AJ ONeal 2018-07-26 21:48:34 +00:00
parent a1af3328cb
commit dddf31db8d
1 changed files with 2 additions and 2 deletions

View File

@ -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
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/"
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/"