#!/bin/sh

if ! grep 'stderred.so' ~/.bash_profile; then
  echo 'export LD_PRELOAD=$LD_PRELOAD:"~/.local/lib64/stderred.so"' >> ~/.bash_profile
fi
mkdir -p ~/.local/lib64
cp stderred.so ~/.local/lib64/