1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:12:45 +01:00

Merge pull request #8293 from smlng/enh/tools/tapsetup

tools/tapsetup: try to retrieve user name if not set
This commit is contained in:
Koen Zandberg 2017-12-19 19:46:32 +01:00 committed by GitHub
commit 2b5f185f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"