cp has slightly different symmantecs

This commit is contained in:
AJ ONeal 2018-07-26 20:49:40 +00:00
parent 0d6e15ee62
commit 45adb12ae1
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ if [ -n "${NODEJS_VER}" ]; then
echo $sudo_cmd rsync -a "${NODEJS_UNTAR}/" "$node_install_path/"
rsync -a "${NODEJS_UNTAR}/" "$node_install_path/" || $sudo_cmd rsync -a "${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 -a "${NODEJS_UNTAR}/*" "$node_install_path/"
cp -a "${NODEJS_UNTAR}/*" "$node_install_path/" || $sudo_cmd cp -a "${NODEJS_UNTAR}/*" "$node_install_path/"
fi
rm -rf "${NODEJS_UNTAR}"