Bugzilla – Attachment 64430 Details for
Bug 116365
save_y2logs saves in a different directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
new patch, additionally fixed quoting of $1 / $TARGET
y2logs.patch (text/plain), 809 bytes, created by
Christian Boltz
on 2006-01-22 22:54:52 UTC
(
hide
)
Description:
new patch, additionally fixed quoting of $1 / $TARGET
Filename:
MIME Type:
Creator:
Christian Boltz
Created:
2006-01-22 22:54:52 UTC
Size:
809 bytes
patch
obsolete
>--- save_y2logs.orig 2006-01-22 23:51:27.000000000 +0100 >+++ save_y2logs 2006-01-22 23:52:06.000000000 +0100 >@@ -4,20 +4,29 @@ > # to attach it to a Bugzilla bug report > # > # Author: Stefan Hundhammer <sh@suse.de> >+# rewritten by: Christian Boltz <http://www.cboltz.de> > >-if [ $# != 1 ]; then >+function usage() { > echo "Usage: $0 <tgz-file-name>" > echo "" > echo "Copies the YaST2 logs to a compressed tar archive." > exit 1 >-fi >+} > >-TARGET=$1 >+test $# != 1 && usage > >-LIST=YaST2 >+case "$1" in >+ -*) >+ usage >+ ;; >+esac > >-[ -f /var/log/evms-engine.log ] && LIST="$LIST evms-engine.*" >+TARGET="$1" > >-cd /var/log && tar czf $TARGET $LIST && exit 0 >+LIST=/var/log/YaST2 >+ >+[ -f /var/log/evms-engine.log ] && LIST="$LIST /var/log/evms-engine.*" >+ >+tar czf "$TARGET" $LIST && exit 0 > exit 2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 116365
:
56559
| 64430 |
76651
|
76653