Closed Bug 544420 Opened 16 years ago Closed 16 years ago

backupsnip fails when only adding new directories

Categories

(Release Engineering :: General, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: nthomas)

References

Details

Attachments

(1 file, 1 obsolete file)

$ ~/bin/backupsnip 20100204-Firefox-3.0.18-3.6-MU-test Ignoring Firefox/3.0.18/Darwin_Universal-gcc3 Ignoring Firefox/3.0.18/Linux_x86-gcc3 Ignoring Firefox/3.0.18/WINNT_x86-msvc Running time /bin/tar cfvz /opt/aus2/snippets/backup/20100204-1-pre-20100204-Firefox-3.0.18-3.6-MU-test.tar.gz /bin/tar: Cowardly refusing to create an empty archive Try `/bin/tar --help' or `/bin/tar --usage' for more information. Those major update snippets only add the directories listed.
Attachment #425377 - Flags: review?(catlee)
Comment on attachment 425377 [details] [diff] [review] Exit early if no directories to backup if $args has more than one entry, then '[ -z $args ]' errors out with '[: 5: file1: unexpected operator' (or somesuch) I think $args needs to be in double quotes.
Attachment #425377 - Flags: review?(catlee) → review-
"-bash: [: too many arguments" is the error. Adds the suggested quotes to resolve the problem.
Attachment #425377 - Attachment is obsolete: true
Attachment #428165 - Flags: review?(catlee)
Attachment #428165 - Flags: review?(catlee) → review+
Comment on attachment 428165 [details] [diff] [review] Quote list of dirs to keep bash a happy camper Checking in backupsnip; /cvsroot/mozilla/tools/release/bin/backupsnip,v <-- backupsnip new revision: 1.6; previous revision: 1.5 done
Attachment #428165 - Flags: checked-in+
Updated the checkout on aus2-staging and staging-stage (this one was at v1.3 of backupsnip and wasn't running backupsnip-nightly, fixed).
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: