support/scripts/pkg-stats: add tilde '~' expansion for pathes
authorHeiko Thiery <heiko.thiery@gmail.com>
Sat, 7 Mar 2020 10:37:05 +0000 (11:37 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Apr 2020 12:49:45 +0000 (14:49 +0200)
commitf41056ec4b423e2fb590b08e07a6dff297b15160
tree0b942e1ace24156e79c92d512b424ce0e5a59c91
parent4be3fd6fdb73085a35e89c2c1218c1e0b1e74a79
support/scripts/pkg-stats: add tilde '~' expansion for pathes

When the 'nvd-path', 'json' and 'html' are used like this:

  --html ~/foo

then the tilde expansion is properly done by the shell. However, when
they are used like this:

  --html=~/foo

The shell doesn't do the tilde expansion, and pkg-stats doesn't do
it. This commit modifies pkg-stats to ensure that tilde expansion is
done when parsing the 'nvd-path', 'json' and 'html' arguments.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
[Thomas: improve commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats