Bash - какой толк от «fi ;;»?

Я везде искал объяснение. Вот реальный пример из сценария apt-fast.sh:

if [ ! -x /usr/bin/axel ]
then echo "axel is not installed, perform this?(y/n)"
    read ops
    case $ops in
     y) if apt-get install axel -y --force-yes
           then echo "axel installed"
        else echo "unable to install the axel. you are using sudo?" ; exit
        fi ;;
     n) echo "not possible usage apt-fast" ; exit ;;
    esac
fi

Какая польза от "fi ;;" в середине блока if ?

41
задан Peter Mortensen 10 March 2017 в 03:52
поделиться