Skip to content

Commit 383ed22

Browse files
chglCopilot
andauthored
check for directory existence
Co-authored-by: Copilot <[email protected]>
1 parent ec8c6d1 commit 383ed22

File tree

1 file changed

+1
-3
lines changed
  • registry/coder/modules/kasmvnc

1 file changed

+1
-3
lines changed

registry/coder/modules/kasmvnc/run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ get_http_dir() {
230230

231231
# Check the system configuration path
232232
if [[ -e /etc/kasmvnc/kasmvnc.yaml ]]; then
233-
d=$(grep -E '^\s*httpd_directory:.*$' "/etc/kasmvnc/kasmvnc.yaml" | awk '{print $2}')
234-
235-
if [[ -n "$d" ]]; then
233+
if [[ -n "$d" && -d "$d" ]]; then
236234
httpd_directory=$d
237235
fi
238236
fi

0 commit comments

Comments
 (0)