Ticket #837 (closed Bug: Fixed)
upgrade-app script not safe for
| Reported by: | mpo | Owned by: | somebody |
|---|---|---|---|
| Priority: | Blocker | Milestone: | |
| Component: | Backup | Version: | |
| Keywords: | Cc: |
Description
using the upgrade-app script that is inserted into the daisy:pack we get this error
bash: line 0: test: too many arguments
and assume it is coming from this snippet:
(cd $oldpack/repodata && find . -type f | xargs -n1 -I {} bash -c "test -f ${app}/repodata/{} && echo rm ${app}/repodata/{}")
encountering a filename with spaces in the repodata/wikidata
The script should be made so it survives this. E.g by adding ' ' around the arguments to test and rm
Change History
Note: See
TracTickets for help on using
tickets.
fixed in r5820