Fix syntax, remove superfluous if

This commit is contained in:
Alexander Grothe 2019-05-18 12:00:22 +02:00
parent 23e54c67a7
commit 5f7414c008
2 changed files with 2 additions and 2 deletions

View File

@ -5346,7 +5346,7 @@ case "$event" in
;;
'device_removed')
removed_symlinks=($(find "$videodir" -xtype l -delete -print))
if [ -z "$device_node" ] && exit
[ -z "$device_node" ] && exit
logger -t "device removed" "remove unneeded symlinks: $(paste -d " " <<< "${removed_symlinks[@]}")"
vdr-dbus-send /Skin skin.QueueMessage string:"$device_node removed"
svdrpsend updr

View File

@ -30,7 +30,7 @@ case "$event" in
;;
'device_removed')
removed_symlinks=($(find "$videodir" -xtype l -delete -print))
if [ -z "$device_node" ] && exit
[ -z "$device_node" ] && exit
logger -t "device removed" "remove unneeded symlinks: $(paste -d " " <<< "${removed_symlinks[@]}")"
vdr-dbus-send /Skin skin.QueueMessage string:"$device_node removed"
svdrpsend updr