Some error handling

alfred-data
Matthias Schiffer 2012-06-06 02:21:59 +02:00
parent 5a33f6bd78
commit 1451624bd4
1 changed files with 5 additions and 0 deletions

View File

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