File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,3 @@ function _install_sudo() {
153153 apt-get install -y --no-install-recommends sudo
154154 fi
155155}
156-
157- function _install_noVNC_linux() {
158- json_value_regexp=' s/^[^"]*".*": \"\(.*\)\"[^"]*/\1/'
159- latest_noVNC_release=$( curl -s https://api.github.com/repos/novnc/noVNC/releases/latest)
160-
161- novnc_tag=$( echo " $latest_noVNC_release " | grep " tag_name" | sed -e " $json_value_regexp " )
162- echo " Got latest noVNC release tag: $novnc_tag "
163-
164- curl -sSL " https://api.github.com/repos/novnc/noVNC/tarball/$novnc_tag " -o " /tmp/noVNC.tgz"
165- mkdir -p /tmp/noVNC
166- tar xzf /tmp/noVNC.tgz -C /tmp/noVNC --strip-components=1
167- }
Original file line number Diff line number Diff line change 2929
3030sm-local-configure
3131
32+ function _install_noVNC_linux() {
33+ json_value_regexp=' s/^[^"]*".*": \"\(.*\)\"[^"]*/\1/'
34+ latest_noVNC_release=$( curl -s https://api.github.com/repos/novnc/noVNC/releases/latest)
35+
36+ novnc_tag=$( echo " $latest_noVNC_release " | grep " tag_name" | sed -e " $json_value_regexp " )
37+ echo " Got latest noVNC release tag: $novnc_tag "
38+
39+ curl -sSL " https://api.github.com/repos/novnc/noVNC/tarball/$novnc_tag " -o " /tmp/noVNC.tgz"
40+ mkdir -p /tmp/noVNC
41+ tar xzf /tmp/noVNC.tgz -C /tmp/noVNC --strip-components=1
42+ }
3243_install_noVNC_linux
3344
3445cd /tmp/noVNC
You can’t perform that action at this time.
0 commit comments