Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fixed injecting dylibs with spaces in their names
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise committed Sep 13, 2022
1 parent 28a0076 commit ec56c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ if [ -n "${files[*]}" ]; then
copy_path="${rpath#"$dir"/"$tweakid"/Tweak/}/$(basename "$i")"
fi

if ! [ -e "${i%.*}.plist" ]; then
if ! [ -e "${i%.dylib}.plist" ]; then
inject+=( "$copy_path" )
lib_dylibs+=( "$copy_path" )
cp -a "$i" "$copy_path"
Expand Down Expand Up @@ -1250,7 +1250,7 @@ if [ -n "${files[*]}" ]; then
Verbose "Injected $(lib_basename "$i") as weak" "Couldn't inject $(lib_basename "$i")" 24 -x
else
insert_dylib --inplace --no-strip-codesig "$id_path" "$executable" &>/dev/null
if ! [[ "$(otool -L "$executable" | cut -d ' ' -f1 | xargs)" =~ $id_path ]]; then status="1"; fi
if ! [[ "$(otool -L "$executable")" =~ $id_path ]]; then status="1"; fi
Verbose "Injected $(lib_basename "$i")" "Couldn't inject $(lib_basename "$i")" 24 -x
fi
lib_dylibs+=( "$i" )
Expand Down

0 comments on commit ec56c2b

Please sign in to comment.