diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-06-22 23:05:55 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-06-22 23:05:55 +0000 |
commit | 0e6bfed3df93dbda8d8a3c2faba4c027593525ec (patch) | |
tree | 4f40d433d4467ea5cf25bc00386bdb3c05256fa5 | |
parent | bb0655af283b7a10b31d4d32ebd7c6f980524fff (diff) | |
download | mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar.gz mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar.bz2 mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.tar.xz mgatools-0e6bfed3df93dbda8d8a3c2faba4c027593525ec.zip |
only add --file-deps if file exists
-rw-r--r-- | functions | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |