copy -Hr as best approximation for rsync -Kr
This commit is contained in:
parent
515bdce8c2
commit
a1af3328cb
|
@ -75,8 +75,8 @@ if [ -n "${NODEJS_VER}" ]; 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/"
|
||||
else
|
||||
echo $sudo_cmd cp -a "${NODEJS_UNTAR}/*" "$node_install_path/"
|
||||
cp -a "${NODEJS_UNTAR}"/* "$node_install_path/" || $sudo_cmd cp -a "${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/"
|
||||
fi
|
||||
rm -rf "${NODEJS_UNTAR}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue