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:
parent
71d5ea2359
commit
24d79ca11b
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…
x
Reference in New Issue
Block a user