windows renaming

This commit is contained in:
zenobit 2023-03-31 05:52:59 +02:00
parent 8f3adab524
commit 8ac01b4d21
1 changed files with 17 additions and 15 deletions

32
dh
View File

@ -395,29 +395,31 @@ EOF
fi fi
} }
fzf_choose_language_windows_other() { fzf_choose_language_windows_other() {
answer=$(echo "Default English answer=$(echo "Default English
Choose other language" | fzf --cycle) Choose other language" | fzf --cycle)
} }
if [ "$answer" = "Choose other language" ]; then
fzf_choose_release_windows() { fzf_choose_release_windows() {
wrelease=$(echo "8 wrelease=$(echo "8
10 10
11" | fzf --cycle) 11" | fzf --cycle)
}
quickget_get_windows_languages_list() {
wlend=$(($(cat "$portable_prefix"quickget | sed '/Arabic/,$!d' | grep -n '}' | cut -d':' -f1 | head -n 1) - 1))
} }
quickget_get_windows_languages_list() { fzf_choose_language_windows() {
wlend=$(($(cat "$portable_prefix"quickget | sed '/Arabic/,$!d' | grep -n '}' | cut -d':' -f1 | head -n 1) - 1)) wlang=$(cat "$portable_prefix"quickget | sed '/Arabic/,$!d' | head -n $wlend | cut -d'=' -f2 | tail -c +2 | head -c -2 | sed 's/^[ \t]*//' | fzf --cycle --header='Choose Language
}
fzf_choose_language_windows() {
wlang=$(cat "$portable_prefix"quickget | sed '/Arabic/,$!d' | head -n $wlend | cut -d'=' -f2 | tail -c +2 | head -c -2 | sed 's/^[ \t]*//' | fzf --cycle --header='Choose Language
or CTRL-c or ESC to quit') or CTRL-c or ESC to quit')
} }
quickget_download_windows() {
printf $"\n Trying to download Windows %s %s...\n\n" "$wrelease" "$wlang" quickget_download_windows() {
"$portable_prefix"quickget "windows" "$wrelease" "$wlang" printf $"\n Trying to download Windows %s %s...\n\n" "$wrelease" "$wlang"
"$portable_prefix"quickget "windows" "$wrelease" "$wlang"
} }
fi
virtual_machine_choose_to_run() { virtual_machine_choose_to_run() {
choosed=$(echo "$(ls ***.conf 2>/dev/null | sed 's/\.conf$//')" | fzf --cycle --header='Choose VM to run choosed=$(echo "$(ls ***.conf 2>/dev/null | sed 's/\.conf$//')" | fzf --cycle --header='Choose VM to run
or CTRL-c or ESC to quit') or CTRL-c or ESC to quit')