Skip to content

Commit 4179344

Browse files
committed
Add conductor function to get Python version
1 parent c6953c3 commit 4179344

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ssh-helpers/conductor.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ conductor_cmd_run() {
239239
run_cmd=1
240240
}
241241

242+
conductor_cmd_pythonversion() {
243+
log conductor_cmd_pythonversion
244+
printf "\e]135;:"
245+
command -v python3 >/dev/null 2>&1 && python3 -V
246+
printf "\e\\"
247+
}
248+
242249
conductor_cmd_runpython() {
243250
log conductor_cmd_runpython
244251
run_python=1
@@ -446,7 +453,8 @@ iterate() {
446453
done
447454

448455
log read line "$line"
449-
handle_command "$line"
456+
log decodes to: $(printf "%s" "$line" | base64_decode)
457+
handle_command $(printf "%s" "$line" | base64_decode)
450458
}
451459

452460
drain_stdin() {

0 commit comments

Comments
 (0)