Browse Source

Use more reliable way to check 'fpm' gem presence

Change-Id: I9074472ba40747be5b7bf055d503564eaada4279
Closes-bug: #1561069
slava 3 years ago
parent
commit
ba733b62a0

+ 4
- 0
examples/fuel_plugin_example_v1/pre_build_hook View File

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

+ 4
- 0
examples/fuel_plugin_example_v2/pre_build_hook View File

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

+ 4
- 0
examples/fuel_plugin_example_v2_update/pre_build_hook View File

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

+ 4
- 0
examples/fuel_plugin_example_v3/pre_build_hook View File

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

+ 4
- 0
examples/fuel_plugin_example_v4/pre_build_hook View File

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

Loading…
Cancel
Save