gum/launcher.sh

20 lines
340 B
Bash
Raw Normal View History

#!/bin/bash
# CHMOD All files (.sh)
find . -type f -iname "*.sh" -exec chmod +x {} \;
2024-04-22 20:53:43 +02:00
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