diff options
author | B Stack <bgstack15@gmail.com> | 2022-06-07 19:10:42 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2022-06-07 19:10:42 -0400 |
commit | 601b90c96c10e6b9b719d5cbe5c967081a2365e3 (patch) | |
tree | c828b12679046e29716f8e51ec323cec21c6eb45 | |
parent | fix scl variable quoting (diff) | |
download | stackrpms-601b90c96c10e6b9b719d5cbe5c967081a2365e3.tar.gz stackrpms-601b90c96c10e6b9b719d5cbe5c967081a2365e3.tar.bz2 stackrpms-601b90c96c10e6b9b719d5cbe5c967081a2365e3.zip |
ffs: fix g__version again
-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 |