File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
registry/coder/modules/kasmvnc Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -233,17 +233,17 @@ get_http_dir() {
233233
234234 # Check the system configuration path
235235 if [[ -e /etc/kasmvnc/kasmvnc.yaml ]]; then
236- d=$( grep -E ' ^\s*httpd_directory:.*$' " /etc/kasmvnc/kasmvnc.yaml" | awk ' {print $2}' )
237- if [[ -n " $d " && -d " $d " ]]; then
238- httpd_directory=$d
236+ d=$( grep -E ' ^\s*httpd_directory:.*$' " /etc/kasmvnc/kasmvnc.yaml" | awk ' {print $$ 2}' )
237+ if [[ -n " $$ d" && -d " $ $ d" ]]; then
238+ httpd_directory=$$ d
239239 fi
240240 fi
241241
242242 # Check the home directory for overriding values
243243 if [[ -e " $HOME /.vnc/kasmvnc.yaml" ]]; then
244- d=$( grep -E ' ^\s*httpd_directory:.*$' " $HOME /.vnc/kasmvnc.yaml" | awk ' {print $2}' )
245- if [[ -n " $d " && -d " $d " ]]; then
246- httpd_directory=$d
244+ d=$( grep -E ' ^\s*httpd_directory:.*$' " $HOME /.vnc/kasmvnc.yaml" | awk ' {print $$ 2}' )
245+ if [[ -n " $$ d" && -d " $ $ d" ]]; then
246+ httpd_directory=$$ d
247247 fi
248248 fi
249249 echo $httpd_directory
You can’t perform that action at this time.
0 commit comments