Add: checking current directory when installing
This commit is contained in:
parent
30216a9c7c
commit
0abc6ed072
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,13 @@ for cmd in dtparam dtoverlay ; do
|
|||
errorFound=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -x seeed-voicecard -o ! -f seeed-voicecard.service ]; then
|
||||
echo "Please run this script in the project directory"
|
||||
echo "which has files such as install.sh and seeed-voicecard.service"
|
||||
errorFound=1
|
||||
fi
|
||||
|
||||
if [ $errorFound = 1 ] ; then
|
||||
echo "Errors found, exiting." 1>&2
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue