mirror of
https://github.com/charmbracelet/gum
synced 2024-06-18 21:45:08 +02:00
20 lines
340 B
Bash
20 lines
340 B
Bash
#!/bin/bash
|
|
|
|
# CHMOD All files (.sh)
|
|
find . -type f -iname "*.sh" -exec chmod +x {} \;
|
|
go build
|
|
|
|
# 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
|