mirror of
https://github.com/charmbracelet/gum
synced 2024-06-29 10:40:28 +02:00
19 lines
331 B
Bash
19 lines
331 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# CHMOD All files (.sh)
|
||
|
find . -type f -iname "*.sh" -exec chmod +x {} \;
|
||
|
|
||
|
# Main choice function
|
||
|
function choice () {
|
||
|
MAI=$(gum input --placeholder "[G]um, [Q]uit")
|
||
|
|
||
|
if [ "$MAI" = "G" ]; then
|
||
|
./gum
|
||
|
fi
|
||
|
if [ "$MAI" = "Q" ]; then
|
||
|
exit
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
choice
|