diff options
| -rw-r--r-- | dorsync | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -64,7 +64,7 @@ cd "$location" rsync_url="rsync://$user@bcd.mageia.org/isos/$release/" select_isos () { - isos=`RSYNC_PASSWORD="$password" rsync --list-only --no-recursive "$rsync_url" | tr -s ' ' | cut -f5 -d" " | grep -i "mageia"` + isos=`RSYNC_PASSWORD="$password" rsync --list-only --no-recursive "$rsync_url" | tr -s ' ' | cut -f5 -d" " | grep -vE "^\.|torrent"` rm -f dorsync.skip echo -e "\nFor each of the following ISOs, press Y to download/update it, or any other key to skip it:\n" for iso in $isos; do @@ -105,6 +105,8 @@ else fi rsyncargs=("-avHP") +# Exclude torrent files. We only want ISOs. +rsyncargs+=("--exclude=*.torrent") if [ -e dorsync.skip ]; then rsyncargs+=("--exclude-from=dorsync.skip") @@ -132,6 +134,7 @@ echo "" i=0 OIFS="$IFS" IFS=$'\n' + # Sorted list with classic isos before live isos for line in $(find . -type f \( ! -name "*Live*" \) -and \( -name "Mageia*.iso" \) -printf '%P\n' | sort && find . -type f -name "Mageia*Live*.iso" -printf '%P\n' | sort) do @@ -456,7 +459,7 @@ dodump () { done # Choose which USB to use -echo "" + echo "" while true do read -r -e -p "Please choose which USB to use or Q to quit and press <enter>: " usbchoice |
