diff --git a/scripts/install.sh b/scripts/install.sh
index 4c31b8f1f6af398aa2c23d40585ddb46e3abe70d..7ea3c4c189e524034f230ea10220906de6377989 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -197,8 +197,10 @@ make -j"${proc}"
 make_install "${global}" "${priv_install}"
 
 # copy runtime files
-if [ -z ${qt5path}]; then
-  python ../copy-runtime-files.py
-else
-  python ../copy-runtime-files.py -q ${qt5path}
+if [ ${client} = "client-qt" ]; then
+  if [ -z ${qt5path} ]; then
+    python ../copy-runtime-files.py
+  else
+    python ../copy-runtime-files.py -q ${qt5path}
+  fi
 fi