Skip to content
Snippets Groups Projects
Commit 7aca558a authored by Benedikt Huber's avatar Benedikt Huber
Browse files

platin: improve output from gem install in install script

parent 2ce70584
No related branches found
No related tags found
No related merge requests found
......@@ -127,13 +127,16 @@ if [ ! -z "${GEM}" ] ; then
if [ "$(${GEM} list ${gemname} --version ${gemversion} -i)" != "true" ] ; then
info "Installing gem ${gemname} --version ${gemversion} (missing)"
local_gemfile="${SRC_DIR}/ext/${gemname}-${gemversion}.gem"
if [ -z "${DRYRUN}" ] ; then
if [ -e "${local_gemfile}" ] ; then
run "${GEM}" install --install-dir "${GEM_DIR}" "${local_gemfile}" -q
gem_args="${local_gemfile}"
else
run "${GEM}" install --install-dir "${GEM_DIR}" "${gemname}" --version "${gemversion}" -q
gem_args="${gemname} --version ${gemversion}"
fi
"${GEM}" install --install-dir "${GEM_DIR}" ${gem_args} -q 2>&1 | sed 's/^/[GEM] /'
if [ "${PIPESTATUS[0]}" -ne 0 ] ; then
echo "WARNING: failed to install gem ${gem_args}. platin will not work." >&2
fi
if [ "${?}" -ne 0 ] ; then
echo "ERROR: failed to install gem ${gemname} --version ${gemversion}" >&2
fi
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment