From 0e6bfed3df93dbda8d8a3c2faba4c027593525ec Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 22 Jun 2011 23:05:55 +0000 Subject: only add --file-deps if file exists --- functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions b/functions index 418bf6f..5a58084 100644 --- a/functions +++ b/functions @@ -31,7 +31,9 @@ function inlist() function update_hdlist() { repository="$1" - /usr/bin/genhdlist2 -v --versioned --allow-empty-media --file-deps "$repository/../../media_info/file-deps" "$repository" + fdeps="$repository/../../media_info/file-deps" + test -f "$fdeps" && ofdeps="--file-deps $fdeps" + /usr/bin/genhdlist2 -v --versioned --allow-empty-media $ofdeps "$repository" } function update_common_MD5SUM() -- cgit v1.2.1