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 () { ...@@ -1029,13 +1029,12 @@ create_name_desktop () {
while true ; do while true ; do
search_desktop_file search_desktop_file
local exit_code=$? local exit_code=$?
if [[ $exit_code == 0 ]] ; then case $exit_code in
break 0) break ;;
elif [[ $exit_code == 1 ]] ; then 1) continue ;;
continue 2) return 0 ;;
elif [[ $exit_code == 2 ]] ; then *) print_error "Broken search_desktop_file func. No exit_code." ;;
return 0 esac
fi
done done
if [[ -n $DESKTOP_NAME_FILE ]] ; then if [[ -n $DESKTOP_NAME_FILE ]] ; then
DESKTOP_NAME_FILE_OLD=$DESKTOP_NAME_FILE 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