From 2a0d86bfb34d78ac5f1df99a317774c369da3ced Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Mar 20 2019 22:59:14 +0000 Subject: Fix missing variable in license detection This was preventing the license files to be echoed to the filelist. --- diff --git a/rpm/macros.d/macros.go-rpm.internal b/rpm/macros.d/macros.go-rpm.internal index 5e219df..388eeb9 100644 --- a/rpm/macros.d/macros.go-rpm.internal +++ b/rpm/macros.d/macros.go-rpm.internal @@ -92,8 +92,8 @@ fi IFS= golicenses=$(%listfiles ) if [[ -n "${golicenses}" ]] ; then - while IFS= read -r ; do - echo "%"license \\"${f}\\" >> "%{goworkdir}/%{currentgodevelfilelist}" + while IFS= read -r f; do + echo "%"license \\""${f}"\\" >> "%{goworkdir}/%{currentgodevelfilelist}" done <<< "${golicenses}" fi )