parameter=$1 install() { if [[ $parameter == "all" ]] || [[ $parameter == $1 ]]; then echo "Installing $1 config in $2" rm -rf $2_backup/ mv $2/ $2_backup/ cp -r $1 $2/ fi } if [[ $parameter == '' ]]; then echo "No config specified, the following configs are available:" echo " all - all of the config files" while read name path; do echo " $name" done