gum/launcher.sh
2024-04-22 19:53:43 +01:00

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