let exists_shell_condition = function | {kind = `File; path } -> fmt "[ -f %s ]" (Filename.quote path) | {kind = `Directory; path } -> fmt "[ -d %s ]" (Filename.quote path)