Commit 070fa46c authored by Lars Beckers's avatar Lars Beckers

fix variable declaration, add set -e

parent e2ad7a9f
Pipeline #866 failed with stage
in 1 minute and 49 seconds
#!/bin/bash
set -e
# $1: source package name
# $2: distribution
function get_sources() {
......@@ -39,9 +41,8 @@ function dch_custom() {
}
function dch_backport() {
local version, name
version=$(cat /etc/os-release | grep VERSION_ID= | sed -E 's/.*([0-9]+).*/\1/')
name=$(cat /etc/os-release | grep VERSION= | sed 's/.*(\(.*\)).*/\1/')
local version=$(cat /etc/os-release | grep VERSION_ID= | sed -E 's/.*([0-9]+).*/\1/')
local name=$(cat /etc/os-release | grep VERSION= | sed 's/.*(\(.*\)).*/\1/')
debchange --local ~bpo$version+ --distribution $name-backports "Rebuild for $name-backports."
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment