Skip to content
Commit e9283213 authored by Eugene Kolomeetz's avatar Eugene Kolomeetz Committed by Pavel Emelyanov
Browse files

scripts: detect EOF on read in a usual way in systemd-autofs-restart.sh

When read bultin detects EOF, it sets empty string as value of specified
variable, and returns non-zero exit code. So we can rely just on exit
code, and not check variable value. This is standard approach.
https://jira.sw.ru/browse/PSBM-44207



Signed-off-by: default avatarEugene Kolomeetz <klm@virtuozzo.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 45538c08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment