Fix detecting changed definitions in mirror script

Grep mustn't get invoked with 0 parameters, otherwise it will hang
waiting on stdin.
This commit is contained in:
Mislav Marohnić 2013-10-24 17:57:52 +02:00
parent 4817d20938
commit 08b3f2c8d3

View file

@ -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() {