aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2.sh
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2009-08-06 08:01:01 +0000
committerGustavo De Nardin <spuk@mandriva.org>2009-08-06 08:01:01 +0000
commitf6a182822d3f9711b3dd53ea13b03d9a21fbc631 (patch)
tree1a697c79d61acf654597cf816ccf7efe823d792f /iurt2.sh
parent098dd6589b485ea0b6fe329b9b802a30d866cc0e (diff)
downloadiurt-f6a182822d3f9711b3dd53ea13b03d9a21fbc631.tar
iurt-f6a182822d3f9711b3dd53ea13b03d9a21fbc631.tar.gz
iurt-f6a182822d3f9711b3dd53ea13b03d9a21fbc631.tar.bz2
iurt-f6a182822d3f9711b3dd53ea13b03d9a21fbc631.tar.xz
iurt-f6a182822d3f9711b3dd53ea13b03d9a21fbc631.zip
Workaround failure to create the log file.
Diffstat (limited to 'iurt2.sh')
-rwxr-xr-xiurt2.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/iurt2.sh b/iurt2.sh
index 0712755..f333bb3 100755
--- a/iurt2.sh
+++ b/iurt2.sh
@@ -5,6 +5,8 @@ case "$1" in
*) LOGFILE="/dev/null" ;;
esac
+touch "$LOGFILE" &>/dev/null || LOGFILE="/dev/null"
+
echo PID=$$
exec perl -I/usr/local/lib/perl/iurt/lib /usr/local/bin/iurt2 "$@" &>"$LOGFILE"