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