Test sidecar for executable-ness rather than existance when cropping

This commit is contained in:
prpr 2024-12-02 12:37:41 +00:00
parent dfb38bbd99
commit 64aea91d9d

View File

@ -71,7 +71,7 @@ set newname "$shname-[clock seconds]"
puts "Renaming file group to $newname"
puts "<span class=hidden id=fileparams file=\"$dir/$newname.ts\"></span>"
ts renamegroup "$dir/$shname.ts" $newname
if {[file exists /mod/bin/sidecar]} {
if {[file executable /mod/bin/sidecar]} {
set cmd [list /mod/bin/sidecar -n]
lappend cmd "$dir/$newname"
puts "Regenerating .nts file"