cubieboard: mkcubiecard: use the right command for checking user privilege
authorAndi Shyti <andi@etezian.org>
Mon, 2 Dec 2013 13:46:07 +0000 (14:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 3 Dec 2013 11:17:20 +0000 (12:17 +0100)
commit2257e36a57c15ef31a013dac56ff7c551fec70c5
tree6ada4f26ea1fab7655887145087d40607cee6288
parenta34cad761baa82e50c855fe96de68de816399204
cubieboard: mkcubiecard: use the right command for checking user privilege

On some shell environments the EUID variable, which checks the
user id, is not defined. Use `id -u` instead.

This patch mutes the following error:

./board/cubietech/cubieboard/mkcubiecard.sh: 31: [: -ne: unexpected operator

Signed-off-by: Andi Shyti <andi@etezian.org>
Reviewed-by: Arvid Picciani <aep@exys.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/cubietech/cubieboard/mkcubiecard.sh