From 08b3f2c8d3e769be44c91c89fca9be0b9e52454a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 24 Oct 2013 17:57:52 +0200 Subject: [PATCH] Fix detecting changed definitions in mirror script Grep mustn't get invoked with 0 parameters, otherwise it will hang waiting on stdin. --- script/mirror | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/mirror b/script/mirror index a2bc0c11..43018967 100755 --- a/script/mirror +++ b/script/mirror @@ -38,7 +38,8 @@ changed_files() { } potentially_new_packages() { - extract_urls $(changed_files "$1" -- ./share/ruby-build) + local files="$(changed_files "$1" -- ./share/ruby-build)" + [ -n "$files" ] && extract_urls $files } extract_urls() {