mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
gum filter instead of gum choose everywhere
This commit is contained in:
parent
ac94004c58
commit
1746488e5c
1 changed files with 3 additions and 2 deletions
5
qrun
5
qrun
|
@ -136,7 +136,7 @@ gum_filter_edition() {
|
||||||
|
|
||||||
gum_choose_VM() {
|
gum_choose_VM() {
|
||||||
if find . -maxdepth 1 -name '*.conf' >/dev/null 2>&1 ; then
|
if find . -maxdepth 1 -name '*.conf' >/dev/null 2>&1 ; then
|
||||||
chosen=$(find . -maxdepth 1 -name '*.conf' | cut -d'/' -f2 | rev | cut -d'.' -f2-9 | rev | gum choose --select-if-one)
|
chosen=$(find . -maxdepth 1 -name '*.conf' | cut -d'/' -f2 | rev | cut -d'.' -f2-9 | rev | gum filter --select-if-one)
|
||||||
else
|
else
|
||||||
gum style --foreground 1 "Can't!"
|
gum style --foreground 1 "Can't!"
|
||||||
fi
|
fi
|
||||||
|
@ -288,7 +288,8 @@ ssh into
|
||||||
kill
|
kill
|
||||||
delete
|
delete
|
||||||
icons
|
icons
|
||||||
exit $progname" | gum choose --selected ' run')
|
exit $progname" | gum filter --height 6)
|
||||||
|
# from choose: --selected ' run'
|
||||||
case $start in
|
case $start in
|
||||||
create ) create_VM;;
|
create ) create_VM;;
|
||||||
run ) gum_choose_VM && run_VM;;
|
run ) gum_choose_VM && run_VM;;
|
||||||
|
|
Loading…
Reference in a new issue