wildcard outside of quotes

This commit is contained in:
AJ ONeal 2018-07-26 21:19:49 +00:00
parent 78942427c6
commit 9c64d17f30
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 rm -rf ${NODEJS_UNTAR}/${NODEJS_NAME}-${NODEJS_VER}-linux-${ARCH} # clean up the temporary unzip folder
rm ${NODEJS_UNTAR}/{LICENSE,CHANGELOG.md,README.md} rm ${NODEJS_UNTAR}/{LICENSE,CHANGELOG.md,README.md}
if [ -n "$(command -v rsync 2>/dev/null | grep rsync)" ]; then if [ -n "$(command -v rsync 2>/dev/null | grep rsync)" ]; then
echo $sudo_cmd rsync -r "${NODEJS_UNTAR}/*" "$node_install_path/" echo $sudo_cmd rsync -r "${NODEJS_UNTAR}"/* "$node_install_path/"
rsync -r "${NODEJS_UNTAR}/*" "$node_install_path/" || $sudo_cmd rsync -r "${NODEJS_UNTAR}/*" "$node_install_path/" rsync -r "${NODEJS_UNTAR}"/* "$node_install_path/" || $sudo_cmd rsync -r "${NODEJS_UNTAR}"/* "$node_install_path/"
else else
echo $sudo_cmd cp -PR "${NODEJS_UNTAR}/*" "$node_install_path/" echo $sudo_cmd cp -PR "${NODEJS_UNTAR}/*" "$node_install_path/"
cp -PR "${NODEJS_UNTAR}"/* "$node_install_path/" || $sudo_cmd cp -PR "${NODEJS_UNTAR}"/* "$node_install_path/" cp -PR "${NODEJS_UNTAR}"/* "$node_install_path/" || $sudo_cmd cp -PR "${NODEJS_UNTAR}"/* "$node_install_path/"