how to enable or disable multiple different functions easily in bash?
<p>I would like to run some different functions in bash. But not everytime I would run all the functions. So I want to do a simple switch in the beginning of my bash script to enable/disable my functions.</p>

<p>Here is my first thought:</p>

<pre><code>enable_fun_A=true
enable_fun_B=false

if [ "$enable_fun_A" = true ]; then
    fun_A
fi

if [ "$enable_fun_B" = true ]; then
    fun_B
fi
</code></pre>

<p>I would like to know if there exists a smart way to deal with enable/disable functions in bash script?</p>