Some error handling
This commit is contained in:
parent
5a33f6bd78
commit
1451624bd4
5
mkmap.sh
5
mkmap.sh
|
@ -1,8 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
DEST=$1
|
DEST=$1
|
||||||
|
|
||||||
|
|
||||||
|
[ "$DEST" ] || exit 1
|
||||||
|
|
||||||
|
|
||||||
GWL=`batctl gwl -n`
|
GWL=`batctl gwl -n`
|
||||||
|
|
||||||
SELF=`echo "$GWL" | head -n 1 | sed -r -e 's@^.*MainIF/MAC: [^/]+/([0-9a-f:]+).*$@\1@'`
|
SELF=`echo "$GWL" | head -n 1 | sed -r -e 's@^.*MainIF/MAC: [^/]+/([0-9a-f:]+).*$@\1@'`
|
||||||
|
|
Loading…
Reference in a new issue