Skip to content

Commit

Permalink
fix: use correct path concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
eWert-Online committed Apr 20, 2024
1 parent 40b1ed9 commit 7640fcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/OSnap.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let setup ~noCreate ~noOnly ~noSkip ~parallelism ~config_path =
|> Lwt_list.map_p_until_exception (fun size ->
let { name = _size_name; width; height } = size in
let filename = Test.get_filename test.name width height in
let current_image_path = snapshot_dir ^ filename in
let current_image_path = Filename.concat snapshot_dir filename in
let exists = Sys.file_exists current_image_path in
if noCreate && not exists
then
Expand Down
2 changes: 1 addition & 1 deletion lib/OSnap_Browser/OSnap_Browser_Path.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let revision_to_string revision = revision
let revisions = [ "1289146"; "1056772"; "961656"; "960312"; "884014"; "856583" ]
let get_latest_revision () = List.hd revisions
let get_previous_revisions () = List.tl revisions
let get_folder_name revision = "osnap_chromium_" ^ revision
let get_folder_name revision = Printf.sprintf "osnap_chromium_%s" revision

let get_chromium_path revision =
match Sys.getenv_opt "HOME" with
Expand Down
2 changes: 1 addition & 1 deletion lib/OSnap_Utils/OSnap_Utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let path_of_segments paths =
(fun acc curr ->
match acc with
| "" -> curr
| path -> path ^ "/" ^ curr)
| path -> Filename.concat path curr)
""
;;

Expand Down

0 comments on commit 7640fcd

Please sign in to comment.