diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-05-02 11:23:23 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-05-02 11:23:23 -0400 |
commit | 26c101cd9b966764d61a8496ad8801f83f9b8f7e (patch) | |
tree | 0d8646b0110895191e840ccd6d9abb937819a7eb | |
parent | 42229d2ac2b3267a4435f69eeefeabaf4461ae4d (diff) |
db-import-pkg: Tidy calling `wc -l`parabola/20180502
-rwxr-xr-x | db-import-pkg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db-import-pkg b/db-import-pkg index e19ed06..d9d1a57 100755 --- a/db-import-pkg +++ b/db-import-pkg @@ -93,7 +93,7 @@ sync_pool() { mkdir -p -- "$_into" msg2 "Retrieving %d packages from %s pool" \ - "$(wc -l "$_whitelist" | cut -d' ' -f1)" \ + "$(wc -l < "$_whitelist")" \ "$(basename "$_from")" # *Don't delete-after*, this is the job of @@ -115,7 +115,7 @@ sync_repo() { local -r _from=$1 _whitelist=$2 _into=$3 mkdir -p -- "$_into" msg2 "Retrieving %d files from repo" \ - "$(wc -l "$_whitelist" | cut -d' ' -f1)" + "$(wc -l < "$_whitelist")" # We delete here for cleanup rsync "${extra[@]}" --no-motd -rtlH \ |