1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 07:51:55 +00:00

Ease script debugging

relates to #27
This commit is contained in:
albfan 2015-07-04 06:10:57 +02:00
parent f5fb475343
commit 91c1ffcbde

View file

@ -1,5 +1,19 @@
#!/bin/bash
# debug {{{
eval SCRIPT_DEBUG="\$$(basename $0 | tr .- __ )_DEBUG"
SCRIPT_DEBUG=${SCRIPT_DEBUG:--1}
if [ "$SCRIPT_DEBUG" -ge 1 ]
then
set -x
fi
if [ "$SCRIPT_DEBUG" -ge 10 ]
then
set -v
fi
#}}}
./kill-wpa.sh
. miracle-utils.sh