Skip to content
Snippets Groups Projects
Commit 070fa46c authored by Lars Beckers's avatar Lars Beckers
Browse files

fix variable declaration, add set -e

parent e2ad7a9f
No related branches found
No related tags found
No related merge requests found
Pipeline #866 failed
#!/bin/bash #!/bin/bash
set -e
# $1: source package name # $1: source package name
# $2: distribution # $2: distribution
function get_sources() { function get_sources() {
...@@ -39,9 +41,8 @@ function dch_custom() { ...@@ -39,9 +41,8 @@ function dch_custom() {
} }
function dch_backport() { function dch_backport() {
local version, name local version=$(cat /etc/os-release | grep VERSION_ID= | sed -E 's/.*([0-9]+).*/\1/')
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/')
name=$(cat /etc/os-release | grep VERSION= | sed 's/.*(\(.*\)).*/\1/')
debchange --local ~bpo$version+ --distribution $name-backports "Rebuild for $name-backports." debchange --local ~bpo$version+ --distribution $name-backports "Rebuild for $name-backports."
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment