Skip to content

Commit

Permalink
Check if "-stagingDir" is passed from the command
Browse files Browse the repository at this point in the history
Check if "-stagingDir" is passed from the command line before trying
to copy files to it.

Pick-to: 6.5
Change-Id: Id39882e4e955bd54328c8e747377b9d49f977378
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
semlanik committed Jan 4, 2023
1 parent ad7ad62 commit f071421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/syncqt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ class SyncScanner
error = SyncFailed;
}

if (!m_commandLineArgs->scanAllMode()) {
if (!m_commandLineArgs->scanAllMode() && !m_commandLineArgs->stagingDir().empty()) {
// Copy the generated files to a spearate staging directory to make the installation
// process eaiser.
if (!copyGeneratedHeadersToStagingDirectory(m_commandLineArgs->stagingDir()))
Expand Down

0 comments on commit f071421

Please sign in to comment.