#!/bin/bash getConfigSource() { case "$key" in 'path') sourcepath="$value" ;; 'skip') skippeddirectories+=( "$value" ) ;; esac }