@@ -53,8 +53,11 @@ def install
5353 turtle-session
5454 ]
5555 turtle_scripts . each do |script |
56- chmod 0755 , "assets/sourceos/bin/#{ script } "
57- bin . install "assets/sourceos/bin/#{ script } "
56+ script_path = "assets/sourceos/bin/#{ script } "
57+ next unless File . exist? ( script_path )
58+
59+ chmod 0755 , script_path
60+ bin . install script_path
5861 end
5962
6063 libexec . install "assets/sourceos/bin/turtleterm" => "turtleterm"
@@ -141,7 +144,9 @@ def caveats
141144 assert_match "TurtleTerm command wrapper" , shell_output ( "#{ bin } /turtle-term --help" )
142145 assert_match "TurtleTerm local agent gateway" , shell_output ( "#{ bin } /turtle-agentd --help" )
143146 assert_match "TurtleTerm agent gateway CLI" , shell_output ( "#{ bin } /turtle-agentctl --help" )
144- assert_match "TurtleTerm agent reliability status" , shell_output ( "#{ bin } /turtle-agent-status --help" )
147+ if ( bin /"turtle-agent-status" ) . exist?
148+ assert_match "TurtleTerm agent reliability status" , shell_output ( "#{ bin } /turtle-agent-status --help" )
149+ end
145150 assert_match "TurtleTerm tmux bridge" , shell_output ( "#{ bin } /turtle-tmux --help" )
146151
147152 events = testpath /"events.ndjson"
@@ -159,7 +164,9 @@ def caveats
159164 assert_match "command.completed" , events . read
160165 assert_match "turtle-agentd" , shell_output ( "#{ bin } /turtle-agentctl --stdio ping" )
161166 assert_match "surfaces" , shell_output ( "#{ bin } /turtle-agentctl --stdio surfaces" )
162- assert_match "status" , shell_output ( "#{ bin } /turtle-agent-status --json" )
167+ if ( bin /"turtle-agent-status" ) . exist?
168+ assert_match "status" , shell_output ( "#{ bin } /turtle-agent-status --json" )
169+ end
163170 assert_match "cloudfog_surfaces" , shell_output ( "#{ bin } /turtle-cloudfog surfaces" )
164171 assert_match "superconscious_observation" , shell_output ( "#{ bin } /turtle-superconscious observe hello" )
165172 assert_match "agent_machine_surfaces" , shell_output ( "#{ bin } /turtle-agent-machine surfaces" )
0 commit comments