mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Update USB import tool
This commit is contained in:
parent
58615bb9d5
commit
c32a20cf23
|
@ -1402,7 +1402,7 @@ configurator_usb_import_dialog() {
|
||||||
while read -r size device_path; do
|
while read -r size device_path; do
|
||||||
device_name=$(basename "$device_path")
|
device_name=$(basename "$device_path")
|
||||||
external_devices=("${external_devices[@]}" "$device_name" "$size" "$device_path")
|
external_devices=("${external_devices[@]}" "$device_name" "$size" "$device_path")
|
||||||
done < <(df --output=size,target | grep media | grep -v $default_sd | awk '{$1=$1;print}')
|
done < <(df --output=size,target -h | grep "/run/media/" | grep -v "$default_sd" | awk '{$1=$1;print}')
|
||||||
|
|
||||||
if [[ "${#external_devices[@]}" -gt 0 ]]; then
|
if [[ "${#external_devices[@]}" -gt 0 ]]; then
|
||||||
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - USB Migration Tool" --cancel-label="Back" \
|
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - USB Migration Tool" --cancel-label="Back" \
|
||||||
|
@ -1432,7 +1432,7 @@ configurator_usb_import_dialog() {
|
||||||
device_name=$(basename "$device_path")
|
device_name=$(basename "$device_path")
|
||||||
external_devices=("${external_devices[@]}" "$device_name" "$size" "$device_path")
|
external_devices=("${external_devices[@]}" "$device_name" "$size" "$device_path")
|
||||||
fi
|
fi
|
||||||
done < <(df --output=size,target | grep media | grep -v $default_sd | awk '{$1=$1;print}')
|
done < <(df --output=size,target -h | grep "/run/media/" | grep -v "$default_sd" | awk '{$1=$1;print}')
|
||||||
|
|
||||||
if [[ "${#external_devices[@]}" -gt 0 ]]; then
|
if [[ "${#external_devices[@]}" -gt 0 ]]; then
|
||||||
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - USB Migration Tool" --cancel-label="Back" \
|
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - USB Migration Tool" --cancel-label="Back" \
|
||||||
|
|
Loading…
Reference in a new issue