[docker] clean up main dockerfile for router and dev configurations (#12364)

Co-authored-by: ybyang <ybyang7@iflytek.com>
This commit is contained in:
Chang Su
2025-10-30 07:46:09 -07:00
committed by GitHub
co-authored by ybyang
parent 700daa3463
commit ecb9fa14e6
6 changed files with 156 additions and 151 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
put() {
esc=$1
test -n "$TMUX" -o -z "${TERM##screen*}" && esc="\033Ptmux;\033$esc\033\\"
printf "$esc"
}
put "\033]52;c;!\a"
buf=$( cat "$@" )
len=$( printf %s "$buf" | wc -c ) max=74994
test $len -gt $max && echo "$0: input is $(( len - max )) bytes too long" >&2
put "\033]52;c;$( printf %s "$buf" | head -c $max | base64 | tr -d '\r\n' )\a"
test -n "$TMUX" && tmux set-buffer "$buf" ||: