Crysalix/main.sh

21 lines
363 B
Bash
Raw Normal View History

#!/bin/bash
source ./sources/functions.sh
banner "Manage OpenLDAP"
CHOIX=(
"1. Ajouter un nouveau utilisateur"
"2. Supprimer un utilisateur"
)
select_option() {
local choice
choice=$(printf "%s\n" "${CHOIX[@]}" | fzf --height=4 --reverse --cycle --prompt=" Choix : " --layout=reverse)
log info "Selection - ${choice}"
}
sleep 1.5
select_option