We use function to pass stdout to a variable, like get_persistent_dev but it will echo some error message and exit in some cases, instead of redirect all the echo to stderr, this patch adds a function perror_exit to fix this and simplify/cleanup related code. Also add another function perror() for cases where no need to exit. Signed-off-by: Dave Young <dyoung@redhat.com> Signed-off-by: Baoquan He <bhe@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
Description
Languages
Shell
92.1%
Roff
6.7%
Makefile
1.2%