mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Silent pushover curl
And fixed a missing fi
This commit is contained in:
@@ -43,13 +43,14 @@ function mount_mountpoint () {
|
||||
log "Mounted $mount_point."
|
||||
if [ -d "/mnt/cam/TeslaCam" ]
|
||||
then
|
||||
log "TeslaCam folder exists"
|
||||
true
|
||||
return
|
||||
else
|
||||
mkdir /mnt/cam/TeslaCam
|
||||
true
|
||||
return
|
||||
log "TeslaCam folder exists"
|
||||
true
|
||||
return
|
||||
else
|
||||
mkdir /mnt/cam/TeslaCam
|
||||
true
|
||||
return
|
||||
fi
|
||||
else
|
||||
log "Failed to mount $mount_point."
|
||||
false
|
||||
@@ -69,7 +70,7 @@ function ensure_mountpoint_is_mounted () {
|
||||
else
|
||||
mount_mountpoint "$mount_point"
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
function ensure_mountpoint_is_mounted_with_retry () {
|
||||
retry ensure_mountpoint_is_mounted "$1"
|
||||
|
||||
Reference in New Issue
Block a user