outdoorbits / little-backup-box

This software turns a single-board computer into a versatile, pocket-sized backup solution. Especially for digital photography, this is the solution for backing up images and media files on mass storage devices when traveling or at events. Media content can be viewed and rated for the subsequent process.
http://littlebackupbox.com
GNU General Public License v3.0
504 stars 103 forks source link

Stabilize working dir recognition #93

Closed outdoorbits closed 3 years ago

outdoorbits commented 3 years ago

Rename variable CONFIG_DIR to WORKING_DIR, because it is used for much more than finding config.cfg. Replace method to find WORKING_DIR. The result of this one is independent of the path, used in the command-line to call the script (e.g. "./backup.sh" "/home/pi/little-backup-box/scripts/backup.sh" results always in "/home/pi/little-backup-box/scripts").