IzzySoft / Adebar

Android DEvice Backup And Report, using Bash and ADB. Moved to https://codeberg.org/izzy/Adebar -- this is only a mirror now.
GNU General Public License v2.0
246 stars 41 forks source link

command `bash adebar-cli` fails #35

Closed PeterSlickers closed 6 years ago

PeterSlickers commented 6 years ago

After creating an appropriate config file 'config/myphone', I have tried to start adebar-cli with bash explicitly, which fails: bash adebar-cli myphone

The error messages indicate that libraries are not found: adebar-cli: line 236: adebar-cli/lib/common.lib: Not a directory

Next I started adebar-cli with a relative path, which works as expected: bash ./adebar-cli myphone

The culprit is the BINDIR assignment in adebar-cli: BINDIR="${0%/*}"

I have fixed the issue by modifying the BINDIR assignment:

clientfullpath=`readlink -mn "${0}"`
BINDIR=`dirname "${clientfullpath}"`