diff --git a/Cargo.toml b/Cargo.toml index 83d308a..34a115b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sharun" -version = "0.0.8" +version = "0.0.9" readme = "README.md" license = "MIT" repository = "https://github.com/VHSgunzo/sharun" @@ -21,4 +21,4 @@ opt-level = 0 [dependencies] walkdir = "2.5.0" -userland-execve = "0.2.0" \ No newline at end of file +userland-execve = "0.2.0" diff --git a/lib4bin b/lib4bin index 2ad3ee1..0b365df 100755 --- a/lib4bin +++ b/lib4bin @@ -117,7 +117,7 @@ get_libs() { [ -n "$2" ] && local needed_libs="$2"||\ local needed_libs="$(print_needed "$1")" local libs="$(([ -z "$needed_libs" ]||\ - grep -E "$(tr '\n' '$|'<<<"$needed_libs")libpthread.so.0$"<<<"$ALL_LIBS" ; \ + grep -E "$(tr '\n' '|'<<<"$needed_libs"|sed 's|\||$\||g')libpthread.so.0$"<<<"$ALL_LIBS" ; \ ldd_libs "$1")|sort -u)" [ -n "$IS_ELF32" ] && \ local libs="$(grep -vE '/lib/|/lib64/|/x86_64-linux-gnu/'<<<"$libs")"||\