Mailinglist Archive: opensuse-bugs (5934 mails)

< Previous Next >
[Bug 673990] simplify usage of script /sbin/save_y2logs

https://bugzilla.novell.com/show_bug.cgi?id=673990

https://bugzilla.novell.com/show_bug.cgi?id=673990#c12


--- Comment #12 from Casual J. Programmer <casualprogrammer@xxxxxxxxxxxx>
2011-02-28 18:30:55 UTC ---
In fact you can play with line +[ $# == 0 ] && TARGET="$(mktemp)-y2logs.tgz" ||
TARGET=$1


For instance +[ $# == 0 ] && TARGET="$(mktemp /tmp/y2-XXXXXXXXXX
--suffix=-logs.tgz)" || TARGET=$1 which would result in a file name like
/tmp/y2-EbYZLQdKFD-logs-201102281929.tgz

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References