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:
Martine Lenders 2020-03-11 19:07:27 +01:00 committed by GitHub
commit 34788abedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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