Преглед на файлове

shuffle ids for bulk.sh

this requires gshuf (coreutils) to be installed on OS X
jomo преди 10 години
родител
ревизия
9c5e5ff9a7
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      test/bulk.sh

+ 3 - 1
test/bulk.sh

@@ -18,7 +18,9 @@ fi
 
 # insert newline after uuids
 id_file="$(echo | cat 'uuids.txt' - 'usernames.txt')"
-mapfile ids <<< $id_file
+# `brew install coreutils` on OS X
+id_file="$(shuf <<< "$id_file" || gshuf <<< "$id_file")"
+mapfile ids <<< "$id_file"
 
 bulk() {
   trap return INT