aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchange5
1 files changed, 1 insertions, 4 deletions
diff --git a/change b/change
index 93e1077..5d1877a 100755
--- a/change
+++ b/change
@@ -1,11 +1,8 @@
#!/usr/bin/bash
-export LD_PRELOAD=libChangeLog.so
export CHANGE_LOG_TARGET="/tmp/$(basename $0).$$.tmp"
-eval "$1"
-
-export LD_PRELOAD=""
+LD_PRELOAD=libChangeLog.so eval "$@"
cat $CHANGE_LOG_TARGET
rm -f $CHANGE_LOG_TARGET