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