From 2c0da26daa81caf40461758bbab5ff494534def4 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 14 Mar 2018 01:04:09 +0100 Subject: travis: use local vars inside functions --- .travis/targets/static.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.travis/targets/static.sh') 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() { -- cgit v1.2.3-18-g5258