1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

tools/tapsetup: try to retrieve user name if not set

This commit is contained in:
smlng 2017-12-19 17:56:48 +01:00
parent 71d5ea2359
commit 24d79ca11b

View File

@ -175,8 +175,11 @@ while true ; do
done
if [ -z "${USER}" ]; then
echo 'need to export $USER'
exit 1
export USER=$(id -un)
if [ -z "${USER}" ]; then
echo 'need to export $USER'
exit 1
fi
fi
if [ -z "${COMMAND}" ]; then
COMMAND="create"