summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-08-14 15:03:41 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-08-14 15:04:07 -0300
commit57fc01e061808cf6ed006b70fe573b8a502c4517 (patch)
tree4ccd27a38a2f812e43afc87ce0e5bf787caf9553 /package
parentd18d9c64168737993821347b5a99a0dd6f061534 (diff)
when packaging, install fpm only if fpm not there
Diffstat (limited to 'package')
-rwxr-xr-xpackage/package_user_agent.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/package_user_agent.sh b/package/package_user_agent.sh
index bf7f079c..da653f76 100755
--- a/package/package_user_agent.sh
+++ b/package/package_user_agent.sh
@@ -40,5 +40,5 @@ deactivate
cp package/pixelated-user-agent $BIN_PATH
cd $BUILD_PATH
-GEM_HOME=./gems gem install fpm
-gems/bin/fpm -s dir -t deb -n pixelated-user-agent -C . .
+[[ ! -f '/tmp/gems/bin/fpm' ]] && GEM_HOME=/tmp/gems gem install fpm
+/tmp/gems/bin/fpm -s dir -t deb -n pixelated-user-agent -C . .