mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
also check for configuration file as part of verification step
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
function verify_configuration () {
|
||||
echo "Verifying rlcone configuration..."
|
||||
if ! [ -e "/root/.config/rclone/rclone.conf" ]
|
||||
then
|
||||
echo "STOP: rclone config was not found. did you configure rclone correctly?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! rclone lsd "$RCLONE_DRIVE": | grep -q "$RCLONE_PATH"
|
||||
then
|
||||
echo "STOP: Could not find the $RCLONE_DRIVE:$RCLONE_PATH"
|
||||
|
||||
Reference in New Issue
Block a user