Use more reliable way to check 'fpm' gem presence

Change-Id: I9074472ba40747be5b7bf055d503564eaada4279
Closes-bug: #1561069
This commit is contained in:
slava 2016-03-24 20:15:07 +03:00
parent 1810af3097
commit ba733b62a0
5 changed files with 20 additions and 0 deletions

View File

@ -5,6 +5,10 @@ command -v fpm >/dev/null 2>&1 || {
echo >&2 "Install 'fpm' to build this plugin. Aborting."; exit 1;
}
ruby -e "require 'fpm'" 2>&1 || {
echo >&2 "'Fpm' binary file is present, but gem seems to be broken! Aborting."; exit 1;
}
ROOT=$(dirname `readlink -f $0`)
UBUNTU_REPO_PATH=$ROOT/repositories/ubuntu

View File

@ -5,6 +5,10 @@ command -v fpm >/dev/null 2>&1 || {
echo >&2 "Install 'fpm' to build this plugin. Aborting."; exit 1;
}
ruby -e "require 'fpm'" 2>&1 || {
echo >&2 "'Fpm' binary file is present, but gem seems to be broken! Aborting."; exit 1;
}
ROOT=$(dirname `readlink -f $0`)
UBUNTU_REPO_PATH=$ROOT/repositories/ubuntu

View File

@ -5,6 +5,10 @@ command -v fpm >/dev/null 2>&1 || {
echo >&2 "Install 'fpm' to build this plugin. Aborting."; exit 1;
}
ruby -e "require 'fpm'" 2>&1 || {
echo >&2 "'Fpm' binary file is present, but gem seems to be broken! Aborting."; exit 1;
}
ROOT=$(dirname `readlink -f $0`)
UBUNTU_REPO_PATH=$ROOT/repositories/ubuntu

View File

@ -5,6 +5,10 @@ command -v fpm >/dev/null 2>&1 || {
echo >&2 "Install 'fpm' to build this plugin. Aborting."; exit 1;
}
ruby -e "require 'fpm'" 2>&1 || {
echo >&2 "'Fpm' binary file is present, but gem seems to be broken! Aborting."; exit 1;
}
ROOT=$(dirname `readlink -f $0`)
UBUNTU_REPO_PATH=$ROOT/repositories/ubuntu

View File

@ -5,6 +5,10 @@ command -v fpm >/dev/null 2>&1 || {
echo >&2 "Install 'fpm' to build this plugin. Aborting."; exit 1;
}
ruby -e "require 'fpm'" 2>&1 || {
echo >&2 "'Fpm' binary file is present, but gem seems to be broken! Aborting."; exit 1;
}
ROOT=$(dirname `readlink -f $0`)
UBUNTU_REPO_PATH=$ROOT/repositories/ubuntu