Double quote to prevent globbing

This commit is contained in:
Daniel Goldberg 2020-01-04 22:39:34 +02:00
parent 6c26933bf8
commit dacd469aa9
1 changed files with 7 additions and 6 deletions

View File

@ -25,16 +25,17 @@ else
fi
TEMP_MONGO=$(mktemp -d)
pushd ${TEMP_MONGO}
pushd "${TEMP_MONGO}"
wget ${tgz_url} -O mongodb.tgz
tar -xf mongodb.tgz
popd
mkdir -p ${MONGODB_DIR}/bin
mkdir -p ${MONGODB_DIR}/db
cp ${TEMP_MONGO}/mongodb-*/bin/mongod ${MONGODB_DIR}/bin/mongod
cp ${TEMP_MONGO}/mongodb-*/LICENSE-Community.txt ${MONGODB_DIR}/
chmod a+x ${MONGODB_DIR}/bin/mongod
mkdir -p "${MONGODB_DIR}"/bin
mkdir -p "${MONGODB_DIR}"/db
cp "${TEMP_MONGO}"/mongodb-*/bin/mongod "${MONGODB_DIR}"/bin/mongod
cp "${TEMP_MONGO}"/mongodb-*/LICENSE-Community.txt "${MONGODB_DIR}"/
chmod a+x "${MONGODB_DIR}"/bin/mongod
# shellcheck disable=SC2086
rm -r ${TEMP_MONGO}
exit 0