Browse Source

fix: if value *NOT* set

tags/devuan/0.14.1+devuan6
Daniel Reurich 6 years ago
parent
commit
99a9fbe3b6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      scripts/generate-git-snapshot

+ 2
- 2
scripts/generate-git-snapshot View File

@@ -356,11 +356,11 @@ git_source_options() {
file="debian/source/options"
if [ -f ${file} ]; then
value=$(git config --file ${file} --get git-depth 2>&- || true)
if [ -n "${value:-}" ]; then
if [ -z "${value:-}" ]; then
DBP_EXTRA_OPTS="${DBP_EXTRA_OPTS:-} --source-option=--git-depth=$GIT_DEPTH"
fi
value=$(git config --file ${file} --get git-ref 2>&- || true)
if ![ -n "${value:-}" ]; then
if ![ -z "${value:-}" ]; then
DBP_EXTRA_OPTS="${DBP_EXTRA_OPTS:-} --source-option=--git-ref=${BRANCH}"
fi
fi


Loading…
Cancel
Save