From 6c4e584fc180e22dae26762610d0997cb7264ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 16 Oct 2003 12:31:54 +0000 Subject: [PATCH] lang/sort_lang.sh: Ignores non file parameter. --- ChangeLog | 1 + lang/sort_lang.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b351ed3c0..cdc313e5f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ * lang/italian: Updated, thanks to Pietro Danesi (danone). * lang/serbian: Updated, thanks to Mihailo Stefanovic (mikis). * lang/persian-utf-8.inc.php3: Regenerated, was somehow broken. + * lang/sort_lang.sh: Ignores non file parameter. 2003-10-15 Marc Delisle * lang/russian-windows-1251: wrong charset (bug 823939) diff --git a/lang/sort_lang.sh b/lang/sort_lang.sh index 270563d7f..c9f158c8e 100755 --- a/lang/sort_lang.sh +++ b/lang/sort_lang.sh @@ -73,7 +73,11 @@ sortlang() echo "-------------------------------------------------------------------" for i in $1; do - echo "Sorting $i" - sortlang $i $2 + if [ ! -f $i ] ; then + echo "$i is not a file, skipping" + else + echo "Sorting $i" + sortlang $i $2 + fi echo "-------------------------------------------------------------------" done;