From 75e9496b4b866d3b550bd02a75503e29724dc71b Mon Sep 17 00:00:00 2001 From: VHSgunzo Date: Thu, 30 Jan 2025 11:22:53 +0300 Subject: [PATCH] Fix webkit hook --- Cargo.toml | 2 +- lib4bin | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 373904f..77436be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sharun" -version = "0.2.7" +version = "0.2.8" readme = "README.md" license = "MIT" repository = "https://github.com/VHSgunzo/sharun" diff --git a/lib4bin b/lib4bin index 3ef885b..53a32f9 100755 --- a/lib4bin +++ b/lib4bin @@ -643,6 +643,7 @@ for binary in "${BINARY_LIST[@]}" if [[ -f "$bin_to_wrap" && ! -L "$bin_to_wrap" ]] && \ ! grep -q '.*\.so.*'<<<"$bin_to_wrap" then + try_mkdir "$bin_dir_pth" mv "$bin_to_wrap" "$bin_dir_pth" ln -sr "$dst_dir/sharun" "$dst_webkit_lib_dir/$(basename "$bin_to_wrap")" fi @@ -651,7 +652,7 @@ for binary in "${BINARY_LIST[@]}" then try_ln . "$dst_dir_pth/$lib_dir/$(basename "$(dirname "$lib_src_pth")")" fi - if ! grep -q 'SHARUN_WORKING_DIR=${SHARUN_DIR}' "$dst_dir/.env" + if ! grep -q 'SHARUN_WORKING_DIR=${SHARUN_DIR}' "$dst_dir/.env" 2>/dev/null then echo 'SHARUN_WORKING_DIR=${SHARUN_DIR}' >> "$dst_dir/.env" fi ;;