forked from mawei/dp
1
0
Fork 0
dp/launch_openpilot.sh

12 lines
244 B
Bash
Raw Normal View History

2017-12-24 09:15:27 +08:00
#!/usr/bin/bash
2021-12-13 13:16:01 +08:00
size=$(du -sb .git/index 2>/dev/null|awk '{print $1}')
echo $size|grep -E '^[0-9]+$' >/dev/null || size=0
if [ $size -le 1024 ];then
rm .git/index 2>/dev/null
git reset
fi
2017-12-24 09:15:27 +08:00
2018-03-17 15:01:50 +08:00
export PASSIVE="0"
exec ./launch_chffrplus.sh
2017-12-24 09:15:27 +08:00