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:
commit
2b5f185f40
7
dist/tools/tapsetup/tapsetup
vendored
7
dist/tools/tapsetup/tapsetup
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user