Skip to content

Commit

Permalink
Merge pull request #25 from zebrapurring/replace-root-path-realpath
Browse files Browse the repository at this point in the history
Replace absolute path to the root directory
  • Loading branch information
zebrapurring authored Dec 8, 2024
2 parents 50beaee + 6a74209 commit f79e872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ build_immich_machine_learning "$staging_dir/immich" "$dist_dir"
fetch_immich_geodata "$dist_dir"

# Fix paths in generated root directory
grep -rlI --null "$root_dir" "$root_dir" | xargs -0 sed -i "" "s|$root_dir||g"
grep -rlI --null "$root_dir" "$root_dir" | xargs -0 sed -i "" "s|$(realpath "$root_dir")||g"

# Copy PKG resources
mkdir -p "$root_dir/Library/LaunchDaemons"
Expand Down

0 comments on commit f79e872

Please sign in to comment.