Ticket #837 (closed Bug: Fixed)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by mpo

  • Status changed from new to closed
  • Resolution set to Fixed

fixed in r5820

Note: See TracTickets for help on using tickets.