Merge pull request #13618 from janosbrodbeck/pr/sliptty_shift_fix
sliptty/start_network.sh: fix if no argument is given
This commit is contained in:
commit
34788abedf
3
dist/tools/sliptty/start_network.sh
vendored
3
dist/tools/sliptty/start_network.sh
vendored
@ -119,12 +119,11 @@ while getopts ehI: opt; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
PREFIX="$1"
|
PREFIX="$1"
|
||||||
shift
|
|
||||||
|
|
||||||
if [ -z "$PREFIX" ]; then
|
if [ -z "$PREFIX" ]; then
|
||||||
usage $0
|
usage $0
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
shift
|
||||||
|
|
||||||
create_tun && \
|
create_tun && \
|
||||||
if [ ${SLIP_ONLY} -ne 1 ]; then
|
if [ ${SLIP_ONLY} -ne 1 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user