Commit c85b706f authored by Mikhail Tergoev's avatar Mikhail Tergoev

added print_error for check exit_code in create_name_desktop

parent 732a0018
......@@ -1029,13 +1029,12 @@ create_name_desktop () {
while true ; do
search_desktop_file
local exit_code=$?
if [[ $exit_code == 0 ]] ; then
break
elif [[ $exit_code == 1 ]] ; then
continue
elif [[ $exit_code == 2 ]] ; then
return 0
fi
case $exit_code in
0) break ;;
1) continue ;;
2) return 0 ;;
*) print_error "Broken search_desktop_file func. No exit_code." ;;
esac
done
if [[ -n $DESKTOP_NAME_FILE ]] ; then
DESKTOP_NAME_FILE_OLD=$DESKTOP_NAME_FILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment