forked from p15670423/monkey
Double quote to prevent globbing
This commit is contained in:
parent
6c26933bf8
commit
dacd469aa9
|
@ -25,16 +25,17 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TEMP_MONGO=$(mktemp -d)
|
TEMP_MONGO=$(mktemp -d)
|
||||||
pushd ${TEMP_MONGO}
|
pushd "${TEMP_MONGO}"
|
||||||
wget ${tgz_url} -O mongodb.tgz
|
wget ${tgz_url} -O mongodb.tgz
|
||||||
tar -xf mongodb.tgz
|
tar -xf mongodb.tgz
|
||||||
popd
|
popd
|
||||||
|
|
||||||
mkdir -p ${MONGODB_DIR}/bin
|
mkdir -p "${MONGODB_DIR}"/bin
|
||||||
mkdir -p ${MONGODB_DIR}/db
|
mkdir -p "${MONGODB_DIR}"/db
|
||||||
cp ${TEMP_MONGO}/mongodb-*/bin/mongod ${MONGODB_DIR}/bin/mongod
|
cp "${TEMP_MONGO}"/mongodb-*/bin/mongod "${MONGODB_DIR}"/bin/mongod
|
||||||
cp ${TEMP_MONGO}/mongodb-*/LICENSE-Community.txt ${MONGODB_DIR}/
|
cp "${TEMP_MONGO}"/mongodb-*/LICENSE-Community.txt "${MONGODB_DIR}"/
|
||||||
chmod a+x ${MONGODB_DIR}/bin/mongod
|
chmod a+x "${MONGODB_DIR}"/bin/mongod
|
||||||
|
# shellcheck disable=SC2086
|
||||||
rm -r ${TEMP_MONGO}
|
rm -r ${TEMP_MONGO}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue