mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-06 10:30:42 +01:00
contrib/build: ignore initial failure to set $SOURCE
More fallout from set -e patch, encountered during a release. Fixes:64f8ec6099('rpm/build*.sh: trap failures') (cherry picked from commitaea231f489)
This commit is contained in:
parent
815b3f5885
commit
81f272babe
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ if [ -n "$SOURCE" ]; then
|
|||
[[ "$SOURCE_FROM_GIT" == 1 ]] && die "Cannot set both \$SOURCE and \$SOURCE_FROM_GIT=1"
|
||||
SOURCE_FROM_GIT=0
|
||||
elif [[ "$SOURCE_FROM_GIT" != "1" ]]; then
|
||||
SOURCE="$(ls -1 "$GITDIR/NetworkManager-${VERSION}.tar."* 2>/dev/null | head -n1)"
|
||||
SOURCE="$(ls -1 "$GITDIR/NetworkManager-${VERSION}.tar."* 2>/dev/null | head -n1 || :)"
|
||||
if [[ -z "$SOURCE" ]]; then
|
||||
[[ "$SOURCE_FROM_GIT" == "0" ]] && die "Either set \$SOURCE or set \$SOURCE_FROM_GIT=1"
|
||||
SOURCE_FROM_GIT=1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue