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() {
233
233
234
234
# Check the system configuration path
235
235
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
239
239
fi
240
240
fi
241
241
242
242
# Check the home directory for overriding values
243
243
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
247
247
fi
248
248
fi
249
249
echo $httpd_directory
You can’t perform that action at this time.
0 commit comments