Skip to content

Commit a5f3999

Browse files
committed
Saved I/O operation
1 parent a841fae commit a5f3999

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/script.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
create_pull_request() {
44
# Download word list
5-
curl -sL https://raw.githubusercontent.com/TomBos/TLC/master/src/word_lists/word_list.txt -o word_list.txt
6-
75
# Source wordlist (branch names)
8-
mapfile -t words < word_list.txt
6+
mapfile -t words < <(curl -sL https://raw.githubusercontent.com/TomBos/TLC/master/src/word_lists/word_list.txt)
97

108
for i in $(seq 0 "$2"); do
119
WORD="${words[i]}"
@@ -132,5 +130,3 @@ clear && display_banner && make_selection
132130
clear && display_banner && choose_number_of_prs "$SELECTION"
133131
create_pull_request "$SELECTION" "$BRANCH_COUNT"
134132

135-
# Clean up
136-
rm word_list.txt

0 commit comments

Comments
 (0)