diff options
| author | Philipp Schafft <lion@lion.leolix.org> | 2017-04-30 21:58:52 +0000 |
|---|---|---|
| committer | Philipp Schafft <lion@lion.leolix.org> | 2017-04-30 21:58:52 +0000 |
| commit | e502b3ea216e24cbffa98e441fea0ea66a4aafaa (patch) | |
| tree | c988786e1a3ba624f71cfa6c9c6f79ab1348dbf6 /webgen | |
| parent | 82f18df7ee7eb7be75a5cd5945ed9e123d6e01d8 (diff) | |
Fix: Allow list_dependencies on ?tpl.lang if there is no ?tpl
Diffstat (limited to 'webgen')
| -rwxr-xr-x | webgen | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -164,10 +164,10 @@ list_dependencies() { *'.'*'.html') _mask=`echo "$1" | cut -d. -f1` _lang=`echo "$1" | cut -d. -f2` - _tpl=`ls -1 -- ?"$_mask" 2> /dev/null` - if [ -r "$_tpl.$_lang" ] + _tpl=`ls -1 -- ?"$_mask.$_lang" 2> /dev/null` + if [ -z "$_tpl" ] then - _tpl="$_tpl.$_lang" + _tpl=`ls -1 -- ?"$_mask" 2> /dev/null` fi [ "$LANGUAGE" = '' ] && LANGUAGE="$_lang" ;; |
