Fix the svace issue - NULL_AFTER_DEREF
[platform/core/connectivity/bluetooth-frwk.git] / bluetooth_log_dump.sh
1 #!/bin/sh
2
3 #--------------------------------------
4 #    bluetooth
5 #--------------------------------------
6
7 BLUETOOTH_DEBUG=${1}/bluetooth
8 PREV_PWD=${PWD}
9 BT_DATA_DIR=/var/lib/bluetooth
10
11 mkdir -p ${BLUETOOTH_DEBUG}
12
13 if [ -e ${BT_DATA_DIR} ]
14 then
15         cd ${BT_DATA_DIR}
16         /bin/tar -cvzf ${BLUETOOTH_DEBUG}/bt_log.tar.gz *
17 fi
18
19 cd ${PREV_PWD}