diff options
-rw-r--r-- | freefilesync/freefilesync.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/freefilesync/freefilesync.spec b/freefilesync/freefilesync.spec index b23c605..4daea5c 100644 --- a/freefilesync/freefilesync.spec +++ b/freefilesync/freefilesync.spec @@ -140,13 +140,14 @@ find . ! -type d \( -name '*.c' -o -name '*.cpp' -o -name '*.h' \) \ # Determine if g++ < 12 g__version="$( %if "%{?scl_env}" != "" - scl enable %{scl_env} /bin/bash <<'EOFSCL' | awk 'NR==1{if($2>=12){print "12"}else{print"11"}}' + scl enable %{scl_env} /bin/bash <<'EOFSCL' %endif g++ --version %if "%{?scl_env}" != "" EOFSCL %endif )" +g__version="$( echo "${g__version}" | awk 'NR==1{if($2>=12){print "12"}else{print"11"}}' )" echo "G__version=${g_version}" if test ${g__version} -lt 12 ; then |