Skip to content

Commit 53afd42

Browse files
committed
Fixed empty workspace check
platform list does not throw an error in Vitis 2021.1
1 parent 06d87cf commit 53afd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checkout.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if { [llength [glob -nocomplain -types d $dest_dir/*]] != 0 } {
2121
# If the workspace is already set to the destination directory
2222
if { [file normalize [getws]] == [file normalize $dest_dir] } {
2323
# Check if the workspace is empty, which it will be if Vitis is launched in an empty directory
24-
if { [catch {app list} ] == 0 || [catch {platform list} ] == 0 || [catch {domain list} ] == 0 || [catch {library list} ] == 0 } {
24+
if { [catch {app list} ] == 0 || ([catch {platform list} ] == 0 && [catch {platform list}] == "") || [catch {domain list} ] == 0 || [catch {library list} ] == 0 } {
2525
puts "WARNING: workspace is not empty. Close Vitis or XSCT to relinquish control and run the cleanup scripts. Re-run checkout.tcl afterwards."
2626
flush stdout;
2727
return -code error "Workspace already exists and needs to be closed first"

0 commit comments

Comments
 (0)