Skip to content

Commit

Permalink
fix: wrappers workaround if files are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc committed Oct 27, 2023
1 parent 2235c4a commit 7b75a7b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ function initiate_upgrade {
OLD_WRAPPER_LIB_PATH=$(find "$PGLIBOLD" -name "wrappers*so" -print -quit)
if [ -f "$OLD_WRAPPER_LIB_PATH" ]; then
LIB_FILE_NAME=$(basename "$OLD_WRAPPER_LIB_PATH")
cp "$WRAPPERS_LIB_PATH" "$PGLIBNEW/${LIB_FILE_NAME}"
if [ "$WRAPPERS_LIB_PATH" != "$PGLIBNEW/${LIB_FILE_NAME}" ]; then
echo "Copying $OLD_WRAPPER_LIB_PATH to $WRAPPERS_LIB_PATH"
cp "$OLD_WRAPPER_LIB_PATH" "$WRAPPERS_LIB_PATH"
fi
fi
fi
fi
Expand Down

0 comments on commit 7b75a7b

Please sign in to comment.