summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-11-15 20:45:12 +0100
committerAlexander Couzens <lynxis@fe80.eu>2017-11-21 14:36:38 +0100
commit1b293e89b22bdf8751c76ceb84da21cac7793bc3 (patch)
tree1f3a925ac83b441f7e9fd7d3deea3137080cd726 /scripts
parent3eb2c50d28c62db33db7ee50762b08aaab1b309d (diff)
osmocom-latest-packages: fix shellcheck warnings
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/osmocom-latest-packages.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index 9deae23..23ee3dd 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -5,7 +5,7 @@ set -e
# OBS project name
PROJ=network:osmocom:latest
-DT=`date +%Y%m%d`
+DT=$(date +%Y%m%d)
TOP=$(pwd)
# start with a checkout of the project
@@ -18,20 +18,20 @@ fi
build() {
echo
echo "====> Building $1"
- cd $TOP
+ cd "$TOP"
rm -rf data
- [ -d $1 ] || git clone git://git.osmocom.org/$1
- cd $1
+ [ -d "$1" ] || git clone "git://git.osmocom.org/$1"
+ cd "$1"
git fetch
- VER=`git describe --abbrev=0 --tags --match "*.*.*" origin/master`
- git checkout -f -B $VER refs/tags/$VER
- gbp buildpackage -d -S -uc -us --git-export-dir=$TOP/data --git-debian-branch=$VER
- cd $TOP/$PROJ/$1
- osc rm * || true
+ VER=$(git describe --abbrev=0 --tags --match "*.*.*" origin/master)
+ git checkout -f -B "$VER" "refs/tags/$VER"
+ gbp buildpackage -d -S -uc -us "--git-export-dir=$TOP/data" "--git-debian-branch=$VER"
+ cd "$TOP/$PROJ/$1"
+ osc rm ./* || true
mv $TOP/data/*.dsc .
mv $TOP/data/*.tar* .
- osc add *
- cd $TOP
+ osc add ./*
+ cd "$TOP"
}
PACKAGES="
@@ -57,8 +57,8 @@ PACKAGES="
"
for p in $PACKAGES; do
- build $p
+ build "$p"
done
-cd $TOP/$PROJ
+cd "$TOP/$PROJ"
osc ci -m "Latest Tagged versions of $DT"