diff options
Diffstat (limited to 'packages/frr/build-frr.sh')
-rwxr-xr-x | packages/frr/build-frr.sh | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/packages/frr/build-frr.sh b/packages/frr/build-frr.sh index 477c41e3..d6ea62b4 100755 --- a/packages/frr/build-frr.sh +++ b/packages/frr/build-frr.sh @@ -16,17 +16,18 @@ fi cd ${FRR_SRC} PATCH_DIR=${CWD}/patches - -echo "I: Apply FRRouting patches not in main repository:" -for patch in $(ls ${PATCH_DIR}) -do - if [ -z "$(git config --list | grep -e user.name -e user.email)" ]; then - # if git user.name and user.email is not set, -c sets temorary user.name and - # user.email variables as these is not set in the build container by default. - OPTS="-c user.name=VyOS-CI -c user.email=maintainers@vyos.io" - fi - git $OPTS am ${PATCH_DIR}/${patch} -done +if [ -d $PATCH_DIR ]; then + echo "I: Apply FRRouting patches not in main repository:" + for patch in $(ls ${PATCH_DIR}) + do + if [ -z "$(git config --list | grep -e user.name -e user.email)" ]; then + # if git user.name and user.email is not set, -c sets temorary user.name and + # user.email variables as these is not set in the build container by default. + OPTS="-c user.name=VyOS-CI -c user.email=maintainers@vyos.io" + fi + git $OPTS am ${PATCH_DIR}/${patch} + done +fi # Prepare FRR source for building echo "I: Prepare FRR source for building" |