aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets/static.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-14 01:04:09 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-14 01:04:09 +0100
commit2c0da26daa81caf40461758bbab5ff494534def4 (patch)
tree2d3e7fed1a6ca372fef5d2d91b6815bd8772b246 /.travis/targets/static.sh
parent3ab9436d81904ca67be155fed19885adc51bc76d (diff)
downloadblogc-2c0da26daa81caf40461758bbab5ff494534def4.tar.gz
blogc-2c0da26daa81caf40461758bbab5ff494534def4.tar.bz2
blogc-2c0da26daa81caf40461758bbab5ff494534def4.zip
travis: use local vars inside functions
Diffstat (limited to '.travis/targets/static.sh')
-rw-r--r--.travis/targets/static.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis/targets/static.sh b/.travis/targets/static.sh
index d0bb42f..d252860 100644
--- a/.travis/targets/static.sh
+++ b/.travis/targets/static.sh
@@ -11,7 +11,7 @@ build() {
rm -rf root
mkdir -p root
- PV="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
+ local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
install -m 755 blogc root/blogc
install -m 644 src/blogc-github-lambda/lambda_function.py root/lambda_function.py
@@ -19,11 +19,11 @@ build() {
strip root/blogc
pushd root > /dev/null
- zip "../blogc-github-lambda-${PV}.zip" *
+ zip "../blogc-github-lambda-${pv}.zip" *
popd > /dev/null
- install -m 755 root/blogc "blogc-static-amd64-${PV}"
- xz -z "blogc-static-amd64-${PV}"
+ install -m 755 root/blogc "blogc-static-amd64-${pv}"
+ xz -z "blogc-static-amd64-${pv}"
}
deploy() {