Refresh the target repos when installed. They shouldn't change after that.
Add an explicit target refresh repos later

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Uset $target consistently

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Simplify unpacking file logic

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Correct target name validation

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
use ${1:-} to avoid errors with unset $1

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Add --target --refresh <target>

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Add verbosity and chown mersdk group too

Signed-off-by: David Greaves <david.greaves@jollamobile.com>