From c3890ca8a9adc6945ff5e15b769a474a09d3b005 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 4 Apr 2019 06:07:54 +0000 Subject: [PATCH] silence stupid errors --- setup-node-ubuntu.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup-node-ubuntu.bash b/setup-node-ubuntu.bash index d18c724..fe400e8 100644 --- a/setup-node-ubuntu.bash +++ b/setup-node-ubuntu.bash @@ -73,15 +73,15 @@ if [ -n "${NODEJS_VER}" ]; then rm ${NODEJS_UNTAR}/{LICENSE,CHANGELOG.md,README.md} if [ -n "$(command -v rsync 2>/dev/null | grep rsync)" ]; then 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/" + rsync -Krl "${NODEJS_UNTAR}/" "$node_install_path/" 2>/dev/null || $sudo_cmd rsync -Krl "${NODEJS_UNTAR}/" "$node_install_path/" else # due to symlink issues on Arch Linux, don't copy the share directory rm -rf ${NODEJS_UNTAR}/share 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/" + cp -Hr "${NODEJS_UNTAR}"/* "$node_install_path/" 2>/dev/null || $sudo_cmd cp -Hr "${NODEJS_UNTAR}"/* "$node_install_path/" fi rm -rf "${NODEJS_UNTAR}" - chown -R $(whoami) "$node_install_path/lib/node_modules/" || $sudo_cmd chown -R $(whoami) "$node_install_path/lib/node_modules/" - chown $(whoami) ""$node_install_path"/bin/" || $sudo_cmd chown $(whoami) ""$node_install_path"/bin/" + chown -R $(whoami) "$node_install_path/lib/node_modules/" 2>/dev/null || $sudo_cmd chown -R $(whoami) "$node_install_path/lib/node_modules/" + chown $(whoami) ""$node_install_path"/bin/" 2>/dev/null || $sudo_cmd chown $(whoami) ""$node_install_path"/bin/" fi